// SubControlViChnlMeritView.cpp : ±¸Çö ÆÄÀÏÀÔ´Ï´Ù. // #include "stdafx.h" #include "ServiceMonitor.h" #include "SubControlViChnlMeritView.h" #include "ControlDialog.h" #include "NetConnection.h" // CSubControlViChnlMeritView ´ëÈ­ »óÀÚÀÔ´Ï´Ù. IMPLEMENT_DYNAMIC(CSubControlViChnlMeritView, CSubControlBaseView) CSubControlViChnlMeritView::CSubControlViChnlMeritView(CWnd* pParent /*=NULL*/) : CSubControlBaseView(EV_CTT_VICHNLMERIT, CSubControlViChnlMeritView::IDD, pParent) { } CSubControlViChnlMeritView::~CSubControlViChnlMeritView() { } void CSubControlViChnlMeritView::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CSubControlViChnlMeritView, CSubControlBaseView) ON_WM_PAINT() ON_WM_SIZE() ON_WM_DESTROY() END_MESSAGE_MAP() void CSubControlViChnlMeritView::OnOK() { // TODO: ¿©±â¿¡ Ư¼öÈ­µÈ Äڵ带 Ãß°¡ ¹×/¶Ç´Â ±âº» Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù. // CDialog::OnOK(); } void CSubControlViChnlMeritView::OnCancel() { // TODO: ¿©±â¿¡ Ư¼öÈ­µÈ Äڵ带 Ãß°¡ ¹×/¶Ç´Â ±âº» Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù. // CDialog::OnCancel(); } void CSubControlViChnlMeritView::UpdateData() { CControlDialog* aControlDialog = static_cast(GetParent()->GetParent()); if (!aControlDialog) return; aControlDialog; } // CSubControlViChnlMeritView ¸Þ½ÃÁö 󸮱âÀÔ´Ï´Ù. BOOL CSubControlViChnlMeritView::OnInitDialog() { CSubControlBaseView::OnInitDialog(); // TODO: ¿©±â¿¡ Ãß°¡ ÃʱâÈ­ ÀÛ¾÷À» Ãß°¡ÇÕ´Ï´Ù. return TRUE; // return TRUE unless you set the focus to a control // ¿¹¿Ü: OCX ¼Ó¼º ÆäÀÌÁö´Â FALSE¸¦ ¹ÝÈ¯ÇØ¾ß ÇÕ´Ï´Ù. } BOOL CSubControlViChnlMeritView::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 CSubControlViChnlMeritView::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 CSubControlViChnlMeritView::OnSize(UINT nType, int cx, int cy) { CSubControlBaseView::OnSize(nType, cx, cy); // TODO: ¿©±â¿¡ ¸Þ½ÃÁö 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù. // m_LayoutManager.OnSize(cx,cy); } void CSubControlViChnlMeritView::OnDestroy() { CSubControlBaseView::OnDestroy(); // TODO: ¿©±â¿¡ ¸Þ½ÃÁö 󸮱â Äڵ带 Ãß°¡ÇÕ´Ï´Ù. }