// SubControlGaMeritView.cpp : ±¸Çö ÆÄÀÏÀÔ´Ï´Ù. // #include "stdafx.h" #include "ServiceMonitor.h" #include "SubControlGaMeritView.h" #include "ControlDialog.h" #include "NetConnection.h" // CSubControlGaMeritView ´ëÈ­ »óÀÚÀÔ´Ï´Ù. IMPLEMENT_DYNAMIC(CSubControlGaMeritView, CSubControlBaseView) CSubControlGaMeritView::CSubControlGaMeritView(CWnd* pParent /*=NULL*/) : CSubControlBaseView(EV_CTT_GAMERIT, CSubControlGaMeritView::IDD, pParent) { } CSubControlGaMeritView::~CSubControlGaMeritView() { } void CSubControlGaMeritView::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CSubControlGaMeritView, CSubControlBaseView) ON_WM_PAINT() ON_WM_SIZE() ON_WM_DESTROY() END_MESSAGE_MAP() void CSubControlGaMeritView::OnOK() { // TODO: ¿©±â¿¡ Ư¼öÈ­µÈ Äڵ带 Ãß°¡ ¹×/¶Ç´Â ±âº» Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù. // CDialog::OnOK(); } void CSubControlGaMeritView::OnCancel() { // TODO: ¿©±â¿¡ Ư¼öÈ­µÈ Äڵ带 Ãß°¡ ¹×/¶Ç´Â ±âº» Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù. // CDialog::OnCancel(); } void CSubControlGaMeritView::UpdateData() { CControlDialog* aControlDialog = static_cast(GetParent()->GetParent()); if (!aControlDialog) return; aControlDialog; } // CSubControlGaMeritView ¸Þ½ÃÁö 󸮱âÀÔ´Ï´Ù. BOOL CSubControlGaMeritView::OnInitDialog() { CSubControlBaseView::OnInitDialog(); // TODO: ¿©±â¿¡ Ãß°¡ ÃʱâÈ­ ÀÛ¾÷À» Ãß°¡ÇÕ´Ï´Ù. return TRUE; // return TRUE unless you set the focus to a control // ¿¹¿Ü: OCX ¼Ó¼º ÆäÀÌÁö´Â FALSE¸¦ ¹ÝÈ¯ÇØ¾ß ÇÕ´Ï´Ù. } BOOL CSubControlGaMeritView::PreTranslateMessage(MSG* pMsg) { // TODO: ¿©±â¿¡ Ư¼öÈ­µÈ Äڵ带 Ãß°¡ ¹×/¶Ç´Â ±âº» Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù. switch(pMsg->message) { case WM_KEYDOWN: { switch(pMsg->wParam) { case VK_ESCAPE: GetParent()->GetParent()->ShowWindow(SW_HIDE); return TRUE; // ESC Ű·Î ºÎ¸ð ÅÇ ÄÁÆ®·ÑÀÇ ºÎ¸ð ´ëÈ­»óÀÚ¸¦ ¼û±è // break; } } break; } return CDialog::PreTranslateMessage(pMsg); } void CSubControlGaMeritView::OnPaint() { CPaintDC dc(this); // device context for painting // TODO: ¿©±â¿¡ ¸Þ½ÃÁö 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù. // ±×¸®±â ¸Þ½ÃÁö¿¡ ´ëÇØ¼­´Â CSubControlBaseView::OnPaint()À»(¸¦) È£ÃâÇÏÁö ¸¶½Ê½Ã¿À. { LOGFONT aLogFont; ::memset(&aLogFont, 0x00, sizeof(aLogFont)); _tcsncpy_s(aLogFont.lfFaceName, _T("Arial"), LF_FACESIZE); aLogFont.lfCharSet = DEFAULT_CHARSET; aLogFont.lfHeight = 25; aLogFont.lfWeight = FW_ULTRABOLD; CFont aNewFont; VERIFY(aNewFont.CreateFontIndirect(&aLogFont)); CFont* aOldFont = dc.SelectObject(&aNewFont); CRect aRect; GetClientRect(&aRect); dc.DrawText(_T("Not Supported Yet"), &aRect, DT_CENTER | DT_VCENTER | DT_SINGLELINE); dc.SelectObject(aOldFont); aNewFont.DeleteObject(); } } void CSubControlGaMeritView::OnSize(UINT nType, int cx, int cy) { CSubControlBaseView::OnSize(nType, cx, cy); // TODO: ¿©±â¿¡ ¸Þ½ÃÁö 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù. // m_LayoutManager.OnSize(cx,cy); } void CSubControlGaMeritView::OnDestroy() { CSubControlBaseView::OnDestroy(); // TODO: ¿©±â¿¡ ¸Þ½ÃÁö 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù. }