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

📄 chameleonppg.cpp

📁 VC编写的变色龙按钮程序
💻 CPP
字号:
// ChameleonPpg.cpp : Implementation of the CChameleonPropPage property page class.

#include "stdafx.h"
#include "Chameleon.h"
#include "ChameleonPpg.h"

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


IMPLEMENT_DYNCREATE(CChameleonPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CChameleonPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CChameleonPropPage)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CChameleonPropPage, "CHAMELEON.ChameleonPropPage.1",
	0x32bc57d5, 0x71ff, 0x4fe1, 0xaa, 0x31, 0x72, 0xe2, 0xc1, 0xc, 0x1c, 0x19)


/////////////////////////////////////////////////////////////////////////////
// CChameleonPropPage::CChameleonPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CChameleonPropPage

BOOL CChameleonPropPage::CChameleonPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_CHAMELEON_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CChameleonPropPage::CChameleonPropPage - Constructor

CChameleonPropPage::CChameleonPropPage() :
	COlePropertyPage(IDD, IDS_CHAMELEON_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CChameleonPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


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

void CChameleonPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CChameleonPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CChameleonPropPage message handlers

BOOL CChameleonPropPage::OnInitDialog() 
{
	COlePropertyPage::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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