📄 printdirectppg.cpp
字号:
// PrintDirectPpg.cpp : Implementation of the CPrintDirectPropPage property page class.
#include "stdafx.h"
#include "PrintDirect.h"
#include "PrintDirectPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CPrintDirectPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CPrintDirectPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CPrintDirectPropPage)
// 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(CPrintDirectPropPage, "PRINTDIRECT.PrintDirectPropPage.1",
0x6744f4e, 0xfc5, 0x11d9, 0x86, 0x68, 0, 0x11, 0x5b, 0x35, 0xbf, 0x86)
/////////////////////////////////////////////////////////////////////////////
// CPrintDirectPropPage::CPrintDirectPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CPrintDirectPropPage
BOOL CPrintDirectPropPage::CPrintDirectPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_PRINTDIRECT_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CPrintDirectPropPage::CPrintDirectPropPage - Constructor
CPrintDirectPropPage::CPrintDirectPropPage() :
COlePropertyPage(IDD, IDS_PRINTDIRECT_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CPrintDirectPropPage)
// NOTE: ClassWizard will add member initialization here
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CPrintDirectPropPage::DoDataExchange - Moves data between page and properties
void CPrintDirectPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CPrintDirectPropPage)
// 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);
}
/////////////////////////////////////////////////////////////////////////////
// CPrintDirectPropPage message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -