QuakeGod
2024-12-24 61deef5cdf96cbfdd6ad45be49e80d597c00ca65
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
 
// ChildView.cpp: CChildView 类的实现
//
 
#include "pch.h"
#include "framework.h"
#include "MFCMView.h"
#include "ChildView.h"
 
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
 
 
// CChildView
 
CChildView::CChildView()
{
}
 
CChildView::~CChildView()
{
}
 
 
BEGIN_MESSAGE_MAP(CChildView, CWnd)
    ON_WM_PAINT()
END_MESSAGE_MAP()
 
 
 
// CChildView 消息处理程序
 
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(nullptr, IDC_ARROW), reinterpret_cast<HBRUSH>(COLOR_WINDOW+1), nullptr);
 
    return TRUE;
}
 
void CChildView::OnPaint() 
{
    CPaintDC dc(this); // 用于绘制的设备上下文
    
    // TODO: 在此处添加消息处理程序代码
    
    // 不要为绘制消息而调用 CWnd::OnPaint()
}