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

📄 ocxtestppg.cpp

📁 在网页中调用VC写的对话框?谕持械饔肰C写的对话框?谕持械饔肰C写的对话框
💻 CPP
字号:
// OcxtestPpg.cpp : Implementation of the COcxtestPropPage property page class.

#include "stdafx.h"
#include "ocxtest.h"
#include "OcxtestPpg.h"

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


IMPLEMENT_DYNCREATE(COcxtestPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(COcxtestPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(COcxtestPropPage)
	// 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(COcxtestPropPage, "OCXTEST.OcxtestPropPage.1",
	0x230e7187, 0x3456, 0x4290, 0x82, 0xba, 0xa7, 0xbd, 0x24, 0xb0, 0x31, 0x8b)


/////////////////////////////////////////////////////////////////////////////
// COcxtestPropPage::COcxtestPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for COcxtestPropPage

BOOL COcxtestPropPage::COcxtestPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_OCXTEST_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// COcxtestPropPage::COcxtestPropPage - Constructor

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


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

void COcxtestPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(COcxtestPropPage)
	// 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);
}


/////////////////////////////////////////////////////////////////////////////
// COcxtestPropPage message handlers

⌨️ 快捷键说明

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