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

📄 pjppg.cpp

📁 Visual C++程序设计技巧与实例
💻 CPP
字号:
// PJPpg.cpp : Implementation of the CPJPropPage property page class.

#include "stdafx.h"
#include "PJ.h"
#include "PJPpg.h"

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


IMPLEMENT_DYNCREATE(CPJPropPage, COlePropertyPage)


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

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


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

IMPLEMENT_OLECREATE_EX(CPJPropPage, "PJ.PJPropPage.1",
	0x94083216, 0xc88e, 0x460b, 0x93, 0xe0, 0x99, 0xea, 0xaa, 0x2e, 0x27, 0x3f)


/////////////////////////////////////////////////////////////////////////////
// CPJPropPage::CPJPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CPJPropPage

BOOL CPJPropPage::CPJPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_PJ_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CPJPropPage::CPJPropPage - Constructor

CPJPropPage::CPJPropPage() :
	COlePropertyPage(IDD, IDS_PJ_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CPJPropPage)
	m_bCanMove = FALSE;
	m_nIndex = 0;
	m_bBK = FALSE;
	//}}AFX_DATA_INIT
}


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

void CPJPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CPJPropPage)
	DDP_Check(pDX, IDC_CHECK_CANMOVE, m_bCanMove, _T("CanMove") );
	DDX_Check(pDX, IDC_CHECK_CANMOVE, m_bCanMove);
	DDP_Text(pDX, IDC_INDEX, m_nIndex, _T("index") );
	DDX_Text(pDX, IDC_INDEX, m_nIndex);
	DDV_MinMaxInt(pDX, m_nIndex, 0, 31);
	DDP_Check(pDX, IDC_CHECK_BK, m_bBK, _T("IsBK") );
	DDX_Check(pDX, IDC_CHECK_BK, m_bBK);
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CPJPropPage message handlers

⌨️ 快捷键说明

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