propertypageex.cpp
来自「windows ce开发技巧与实例光盘代码」· C++ 代码 · 共 61 行
CPP
61 行
// PropertyPageEx.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "PropertyPageEx.h"
#include "PropertySheetEx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPropertyPageEx property page
IMPLEMENT_DYNCREATE(CPropertyPageEx, CPropertyPage)
void CPropertyPageEx::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPropertyPageEx)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPropertyPageEx, CPropertyPage)
//{{AFX_MSG_MAP(CPropertyPageEx)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPropertyPageEx message handlers
void CPropertyPageEx::OnOK()
{
CPropertySheetEx *pSheet =
DYNAMIC_DOWNCAST(CPropertySheetEx, GetParent());
if(pSheet != NULL)
{
pSheet->EndDialog(IDOK);
}
CPropertyPage::OnOK();
}
void CPropertyPageEx::OnCancel()
{
CPropertySheetEx *pSheet =
DYNAMIC_DOWNCAST(CPropertySheetEx, GetParent());
if(pSheet != NULL)
{
pSheet->EndDialog(IDCANCEL);
}
CPropertyPage::OnCancel();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?