DragonNest/Server/ServiceMonitorEx/Source/SubControlViChnlMeritView.cpp

139 lines
3.1 KiB
C++
Raw Permalink Normal View History

// SubControlViChnlMeritView.cpp : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
//
#include "stdafx.h"
#include "ServiceMonitor.h"
#include "SubControlViChnlMeritView.h"
#include "ControlDialog.h"
#include "NetConnection.h"
// CSubControlViChnlMeritView <20><>ȭ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
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: <20><><EFBFBD>⿡ Ư<><C6AF>ȭ<EFBFBD><C8AD> <20>ڵ带 <20>߰<EFBFBD> <20><>/<2F>Ǵ<EFBFBD> <20>⺻ Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȣ<><C8A3><EFBFBD>մϴ<D5B4>.
// CDialog::OnOK();
}
void CSubControlViChnlMeritView::OnCancel()
{
// TODO: <20><><EFBFBD>⿡ Ư<><C6AF>ȭ<EFBFBD><C8AD> <20>ڵ带 <20>߰<EFBFBD> <20><>/<2F>Ǵ<EFBFBD> <20>⺻ Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȣ<><C8A3><EFBFBD>մϴ<D5B4>.
// CDialog::OnCancel();
}
void CSubControlViChnlMeritView::UpdateData()
{
CControlDialog* aControlDialog = static_cast<CControlDialog*>(GetParent()->GetParent());
if (!aControlDialog) return;
aControlDialog;
}
// CSubControlViChnlMeritView <20>޽<EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
BOOL CSubControlViChnlMeritView::OnInitDialog()
{
CSubControlBaseView::OnInitDialog();
// TODO: <20><><EFBFBD><20>߰<EFBFBD> <20>ʱ<EFBFBD>ȭ <20>۾<EFBFBD><DBBE><EFBFBD> <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
return TRUE; // return TRUE unless you set the focus to a control
// <20><><EFBFBD><EFBFBD>: OCX <20>Ӽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> FALSE<53><45> <20><>ȯ<EFBFBD>ؾ<EFBFBD> <20>մϴ<D5B4>.
}
BOOL CSubControlViChnlMeritView::PreTranslateMessage(MSG* pMsg)
{
// TODO: <20><><EFBFBD>⿡ Ư<><C6AF>ȭ<EFBFBD><C8AD> <20>ڵ带 <20>߰<EFBFBD> <20><>/<2F>Ǵ<EFBFBD> <20>⺻ Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȣ<><C8A3><EFBFBD>մϴ<D5B4>.
switch(pMsg->message) {
case WM_KEYDOWN:
{
switch(pMsg->wParam) {
case VK_ESCAPE:
GetParent()->GetParent()->ShowWindow(SW_HIDE);
return TRUE; // ESC Ű<><C5B0> <20>θ<EFBFBD> <20><> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>θ<EFBFBD> <20><>ȭ<EFBFBD><C8AD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD>
// break;
}
}
break;
}
return CDialog::PreTranslateMessage(pMsg);
}
void CSubControlViChnlMeritView::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: <20><><EFBFBD><20>޽<EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ带 <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
// <20>׸<EFBFBD><D7B8><EFBFBD> <20>޽<EFBFBD><DEBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD> CSubControlBaseView::OnPaint()<29><>(<28><>) ȣ<><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ʽÿ<CABD>.
{
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: <20><><EFBFBD><20>޽<EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ带 <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
// m_LayoutManager.OnSize(cx,cy);
}
void CSubControlViChnlMeritView::OnDestroy()
{
CSubControlBaseView::OnDestroy();
// TODO: <20><><EFBFBD><20>޽<EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ带 <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
}