2024-12-21 10:04:04 +08:00
|
|
|
|
// SubControlGaMeritView.cpp : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
#include "ServiceMonitor.h"
|
|
|
|
|
|
#include "SubControlGaMeritView.h"
|
|
|
|
|
|
#include "ControlDialog.h"
|
|
|
|
|
|
#include "NetConnection.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CSubControlGaMeritView <20><>ȭ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
|
|
|
|
|
|
|
|
|
|
|
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: <20><><EFBFBD> Ư<><C6AF>ȭ<EFBFBD><C8AD> <20>ڵ带 <20>߰<EFBFBD> <20><>/<2F>Ǵ<EFBFBD> <20>⺻ Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȣ<><C8A3><EFBFBD>մϴ<D5B4>.
|
|
|
|
|
|
|
|
|
|
|
|
// CDialog::OnOK();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CSubControlGaMeritView::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 CSubControlGaMeritView::UpdateData()
|
|
|
|
|
|
{
|
|
|
|
|
|
CControlDialog* aControlDialog = static_cast<CControlDialog*>(GetParent()->GetParent());
|
|
|
|
|
|
if (!aControlDialog) return;
|
|
|
|
|
|
|
|
|
|
|
|
aControlDialog;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// CSubControlGaMeritView <20><EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
|
|
|
|
|
|
|
|
|
|
|
BOOL CSubControlGaMeritView::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 CSubControlGaMeritView::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 CSubControlGaMeritView::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 CSubControlGaMeritView::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 CSubControlGaMeritView::OnDestroy()
|
|
|
|
|
|
{
|
|
|
|
|
|
CSubControlBaseView::OnDestroy();
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: <20><><EFBFBD> <20><EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ带 <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
|
|
|
|
|
|
}
|