📄 digitalppg.cpp
字号:
// DigitalPpg.cpp : Implementation of the CDigitalPropPage property page class.
#include "stdafx.h"
#include "Digital.h"
#include "DigitalPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CDigitalPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CDigitalPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CDigitalPropPage)
// NOTE - ClassWizard will add and remove message map entries
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid
IMPLEMENT_OLECREATE_EX(CDigitalPropPage, "DIGITAL.DigitalPropPage.1",
0x50852612, 0x218e, 0x4071, 0xa9, 0x56, 0x34, 0x13, 0xf4, 0xb1, 0xf2, 0xff)
/////////////////////////////////////////////////////////////////////////////
// CDigitalPropPage::CDigitalPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CDigitalPropPage
BOOL CDigitalPropPage::CDigitalPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_DIGITAL_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CDigitalPropPage::CDigitalPropPage - Constructor
CDigitalPropPage::CDigitalPropPage() :
COlePropertyPage(IDD, IDS_DIGITAL_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CDigitalPropPage)
m_nBit = 0;
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CDigitalPropPage::DoDataExchange - Moves data between page and properties
void CDigitalPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CDigitalPropPage)
DDP_Text(pDX, IDC_EDIT1, m_nBit, _T("nBit") );
DDX_Text(pDX, IDC_EDIT1, m_nBit);
DDV_MinMaxInt(pDX, m_nBit, 0, 20);
//}}AFX_DATA_MAP
DDP_PostProcessing(pDX);
}
/////////////////////////////////////////////////////////////////////////////
// CDigitalPropPage message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -