diceppg.cpp

来自「我要下载源代码我要源代码我要下载代码我要下载源代码」· C++ 代码 · 共 78 行

CPP
78
字号
// 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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?