|
// ChildFrm.cpp: CChildFrame 类的实现
|
//
|
|
#include "pch.h"
|
#include "framework.h"
|
#include "MFCApplication3.h"
|
|
#include "ChildFrm.h"
|
|
#ifdef _DEBUG
|
#define new DEBUG_NEW
|
#endif
|
|
// CChildFrame
|
|
IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)
|
|
BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
|
END_MESSAGE_MAP()
|
|
// CChildFrame 构造/析构
|
|
CChildFrame::CChildFrame() noexcept
|
{
|
// TODO: 在此添加成员初始化代码
|
}
|
|
CChildFrame::~CChildFrame()
|
{
|
}
|
|
|
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
|
{
|
// TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或样式
|
if( !CMDIChildWnd::PreCreateWindow(cs) )
|
return FALSE;
|
|
cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
|
| FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
|
|
return TRUE;
|
}
|
|
// CChildFrame 诊断
|
|
#ifdef _DEBUG
|
void CChildFrame::AssertValid() const
|
{
|
CMDIChildWnd::AssertValid();
|
}
|
|
void CChildFrame::Dump(CDumpContext& dc) const
|
{
|
CMDIChildWnd::Dump(dc);
|
}
|
#endif //_DEBUG
|
|
// CChildFrame 消息处理程序
|