-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChildView.cpp
More file actions
73 lines (54 loc) · 1.38 KB
/
ChildView.cpp
File metadata and controls
73 lines (54 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// ChildView.cpp : implementation of the CChildView class
//
#include "stdafx.h"
#include "HMCPT.h"
#include "ChildView.h"
//custom
#include "MainFrm.h"
#include "MainDlg.h"
#include "BkdextDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CChildView
CChildView::CChildView()
{
}
CChildView::~CChildView()
{
}
BEGIN_MESSAGE_MAP(CChildView, CWnd)
ON_WM_PAINT()
ON_COMMAND(ID_TOOLS_ANALYZER, &CChildView::OnToolsAnalyzer)
// ON_WM_CREATE()
ON_COMMAND(ID_TOOLS_BKDEXTRACTOR, &CChildView::OnToolsBkdExtractor)
END_MESSAGE_MAP()
// CChildView message handlers
BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs)
{
if (!CWnd::PreCreateWindow(cs))
return FALSE;
cs.dwExStyle |= WS_EX_CLIENTEDGE;
cs.style &= ~WS_BORDER;
cs.lpszClass = AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW|CS_DBLCLKS,
::LoadCursor(NULL, IDC_ARROW), reinterpret_cast<HBRUSH>(COLOR_WINDOW+1), NULL);
return TRUE;
}
void CChildView::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
// Do not call CWnd::OnPaint() for painting messages
}
void CChildView::OnToolsAnalyzer()
{
// TODO: 여기에 명령 처리기 코드를 추가합니다.
CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd();
mDlg.DoModal();
}
void CChildView::OnToolsBkdExtractor()
{
// TODO: 여기에 명령 처리기 코드를 추가합니다.
CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd();
bDlg.DoModal();
}