📄 papazview.cpp
字号:
// PapazView.cpp : implementation of the CPapazView class
//
#include "stdafx.h"
#include "Papaz.h"
#include "PapazDoc.h"
#include "PapazView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPapazView
IMPLEMENT_DYNCREATE(CPapazView, CFormView)
BEGIN_MESSAGE_MAP(CPapazView, CFormView)
//{{AFX_MSG_MAP(CPapazView)
// ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
// ON_BN_CLICKED(IDC_BUTTON2, OnButton2)//
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPapazView construction/destruction
CPapazView::CPapazView()
: CFormView(CPapazView::IDD)
{
//{{AFX_DATA_INIT(CPapazView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
// TODO: add construction code here
}
CPapazView::~CPapazView()
{
}
void CPapazView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPapazView)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BOOL CPapazView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CFormView::PreCreateWindow(cs);
}
void CPapazView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
m_Sheet.AddPage(&m_Page1);
m_Sheet.AddPage(&m_Page2);
m_Sheet.AddPage(&m_Page3);
m_Sheet.AddPage(&m_Page4);
m_Sheet.AddPage(&m_Page5);
m_Sheet.Create(this, WS_CHILD | WS_VISIBLE, 0);
m_Sheet.ModifyStyleEx (0, WS_EX_CONTROLPARENT);
m_Sheet.ModifyStyle( 0, WS_TABSTOP );
// 设置属性页位置
m_Sheet.SetWindowPos( NULL, 0, 0, 0, 0,
SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE );
}
/////////////////////////////////////////////////////////////////////////////
// CPapazView diagnostics
#ifdef _DEBUG
void CPapazView::AssertValid() const
{
CFormView::AssertValid();
}
void CPapazView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
CPapazDoc* CPapazView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CPapazDoc)));
return (CPapazDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CPapazView message handlers
void CPapazView::OnButton1()
{
// TODO: Add your control notification handler code here
}
/*
void CPapazView::OnButton2()
{
}
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -