?? diceppg.cpp
字號:
// DicePpg.cpp : Implementation of the CDicePropPage property page class.
#include "stdafx.h"
#include "dice.h"
#include "DicePpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CDicePropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CDicePropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CDicePropPage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid
IMPLEMENT_OLECREATE_EX(CDicePropPage, "DICE.DicePropPage.1",
0x50c319af, 0x7559, 0x41dc, 0x8f, 0x69, 0xa5, 0x90, 0xda, 0xec, 0x5c, 0x13)
/////////////////////////////////////////////////////////////////////////////
// CDicePropPage::CDicePropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CDicePropPage
BOOL CDicePropPage::CDicePropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_DICE_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CDicePropPage::CDicePropPage - Constructor
CDicePropPage::CDicePropPage() :
COlePropertyPage(IDD, IDS_DICE_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CDicePropPage)
m_rollingInterval = 0;
m_panelColor = 0;
m_ballColor = 0;
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CDicePropPage::DoDataExchange - Moves data between page and properties
void CDicePropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CDicePropPage)
DDX_Text(pDX, IDC_ROLLING_INTERVAL, m_rollingInterval);
DDX_Text(pDX, IDC_PANEL_COLOR, m_panelColor);
DDX_Text(pDX, IDC_BALL_COLOR, m_ballColor);
//}}AFX_DATA_MAP
DDP_PostProcessing(pDX);
}
/////////////////////////////////////////////////////////////////////////////
// CDicePropPage message handlers
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -