mypropertytestview.cpp

来自「在wince4.0上用evc++做的一个属性窗口界面的小测试程序」· C++ 代码 · 共 90 行

CPP
90
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?