zxd
2023-09-14 d34256830982fb9ea822c1e9b874c3b7fa0a614d
提交 | 用户 | age
4b03ae 1 
Q 2 // ChildFrm.cpp: CChildFrame 类的实现
3 //
4
5 #include "pch.h"
6 #include "framework.h"
7 #include "MFCApplication3.h"
8
9 #include "ChildFrm.h"
10
11 #ifdef _DEBUG
12 #define new DEBUG_NEW
13 #endif
14
15 // CChildFrame
16
17 IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)
18
19 BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
20 END_MESSAGE_MAP()
21
22 // CChildFrame 构造/析构
23
24 CChildFrame::CChildFrame() noexcept
25 {
26     // TODO: 在此添加成员初始化代码
27 }
28
29 CChildFrame::~CChildFrame()
30 {
31 }
32
33
34 BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
35 {
36     // TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或样式
37     if( !CMDIChildWnd::PreCreateWindow(cs) )
38         return FALSE;
39
40     cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
41         | FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
42
43     return TRUE;
44 }
45
46 // CChildFrame 诊断
47
48 #ifdef _DEBUG
49 void CChildFrame::AssertValid() const
50 {
51     CMDIChildWnd::AssertValid();
52 }
53
54 void CChildFrame::Dump(CDumpContext& dc) const
55 {
56     CMDIChildWnd::Dump(dc);
57 }
58 #endif //_DEBUG
59
60 // CChildFrame 消息处理程序