📄 mypropertytestview.cpp
字号:
// mypropertytestView.cpp : implementation of the CMypropertytestView class
//
#include "stdafx.h"
#include "mypropertytest.h"
#include "mypropertytestDoc.h"
#include "mypropertytestView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMypropertytestView
IMPLEMENT_DYNCREATE(CMypropertytestView, CView)
BEGIN_MESSAGE_MAP(CMypropertytestView, CView)
//{{AFX_MSG_MAP(CMypropertytestView)
ON_COMMAND(IDM_showpage, Onshowpage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMypropertytestView construction/destruction
CMypropertytestView::CMypropertytestView()
{
// TODO: add construction code here
}
CMypropertytestView::~CMypropertytestView()
{
}
BOOL CMypropertytestView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMypropertytestView drawing
void CMypropertytestView::OnDraw(CDC* pDC)
{
CMypropertytestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CMypropertytestView diagnostics
#ifdef _DEBUG
void CMypropertytestView::AssertValid() const
{
CView::AssertValid();
}
void CMypropertytestView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMypropertytestDoc* CMypropertytestView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMypropertytestDoc)));
return (CMypropertytestDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMypropertytestView message handlers
void CMypropertytestView::Onshowpage()
{
// TODO: Add your command handler code here
CPropSheet aha(_T("test"));
aha.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -