⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bullppg.cpp

📁 讲mfc的书
💻 CPP
字号:
// BullPpg.cpp : Implementation of the CBullPropPage property page class.

#include "stdafx.h"
#include "bull.h"
#include "BullPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CBullPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CBullPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CBullPropPage)
	// 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(CBullPropPage, "BULL.BullPropPage.1",
	0x59e8a904, 0xe0c6, 0x11cf, 0xa7, 0xb2, 0x44, 0x45, 0x53, 0x54, 0, 0)


/////////////////////////////////////////////////////////////////////////////
// CBullPropPage::CBullPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CBullPropPage

BOOL CBullPropPage::CBullPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_BULL_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CBullPropPage::CBullPropPage - Constructor

CBullPropPage::CBullPropPage() :
	COlePropertyPage(IDD, IDS_BULL_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CBullPropPage)
	m_step = 0;
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CBullPropPage::DoDataExchange - Moves data between page and properties

void CBullPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CBullPropPage)
	DDP_Text(pDX, IDC_EDIT1, m_step, _T("Step") );
	DDX_Text(pDX, IDC_EDIT1, m_step);
	DDV_MinMaxInt(pDX, m_step, 1, 10);
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CBullPropPage message handlers

⌨️ 快捷键说明

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