-
Notifications
You must be signed in to change notification settings - Fork 4
/
MainFrm.h
55 lines (41 loc) · 1.07 KB
/
MainFrm.h
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
// MainFrm.h: CMainFrame 类的接口
//
#pragma once
//WM_USER 是用户自定义消息的一个起始值
//WM_USER+100 是为了区分系统消息和用户消息,避免冲突
#define WU_1 WM_USER+100
#define WU_2 WM_USER+101
#define WU_3 WM_USER+102
#define WU_4 WM_USER+103
//#define WU_5 WM_USER+104
class CMainFrame : public CFrameWnd
{
protected: // 仅从序列化创建
CMainFrame() noexcept;
DECLARE_DYNCREATE(CMainFrame)
// 特性
public:
// 操作
public:
// 重写
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
// 实现
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // 控件条嵌入成员
CStatusBar m_wndStatusBar;
// 生成的消息映射函数
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_MESSAGE_MAP()
private:
CSplitterWnd m_Splitter; //切分窗口类对象
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
afx_msg LRESULT OnMyChange(WPARAM wParam, LPARAM lParam);
};