boxppg.cpp
来自「INTERNET网络高级编程的包括邮件加密、MAPI、ISAPI、ACTIVEX」· C++ 代码 · 共 77 行
CPP
77 行
// 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 + =
减小字号Ctrl + -
显示快捷键?