firstview.cpp
来自「VC.net 的一些有用的技巧」· C++ 代码 · 共 78 行
CPP
78 行
// 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 + =
减小字号Ctrl + -
显示快捷键?