📄 boxppg.cpp
字号:
// BoxPpg.cpp : Implementation of the CBoxPropPage property page class.
#include "stdafx.h"
#include "Box.h"
#include "BoxPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CBoxPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CBoxPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CBoxPropPage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid
IMPLEMENT_OLECREATE_EX(CBoxPropPage, "BOX.BoxPropPage.1",
0x704f2b5d, 0xc610, 0x11d4, 0xaf, 0x14, 0, 0xe0, 0x4c, 0xdd, 0x45, 0x65)
/////////////////////////////////////////////////////////////////////////////
// CBoxPropPage::CBoxPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CBoxPropPage
BOOL CBoxPropPage::CBoxPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_BOX_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CBoxPropPage::CBoxPropPage - Constructor
CBoxPropPage::CBoxPropPage() :
COlePropertyPage(IDD, IDS_BOX_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CBoxPropPage)
m_bShowMethod = FALSE;
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CBoxPropPage::DoDataExchange - Moves data between page and properties
void CBoxPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CBoxPropPage)
DDP_Check(pDX, IDC_CHECK1, m_bShowMethod, _T("Number") );
DDX_Check(pDX, IDC_CHECK1, m_bShowMethod);
//}}AFX_DATA_MAP
DDP_PostProcessing(pDX);
}
/////////////////////////////////////////////////////////////////////////////
// CBoxPropPage message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -