📄 firstview.cpp
字号:
// FirstView.cpp : CFirstView 类的实现
//
#include "stdafx.h"
#include "TwoView.h"
#include "TwoViewDoc.h"
#include "FirstView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CFirstView
IMPLEMENT_DYNCREATE(CFirstView, CFormView)
BEGIN_MESSAGE_MAP(CFirstView, CFormView)
END_MESSAGE_MAP()
// CFirstView 构造/销毁
CFirstView::CFirstView()
: CFormView(CFirstView::IDD)
{
// TODO: 在此处添加构造代码
}
CFirstView::~CFirstView()
{
}
void CFirstView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
}
BOOL CFirstView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或
// 样式
return CFormView::PreCreateWindow(cs);
}
void CFirstView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
}
// CFirstView 诊断
#ifdef _DEBUG
void CFirstView::AssertValid() const
{
CFormView::AssertValid();
}
void CFirstView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
CTwoViewDoc* CFirstView::GetDocument() const // 非调试版本是内联的
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTwoViewDoc)));
return (CTwoViewDoc*)m_pDocument;
}
#endif //_DEBUG
// CFirstView 消息处理程序
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -