arrowppg.cpp
来自「VC写的一个箭头ActiveX控件」· C++ 代码 · 共 77 行
CPP
77 行
// ArrowPpg.cpp : Implementation of the CArrowPropPage property page class.
#include "stdafx.h"
#include "arrow.h"
#include "ArrowPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CArrowPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CArrowPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CArrowPropPage)
// 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(CArrowPropPage, "ARROW.ArrowPropPage.1",
0x9990a5d8, 0x7673, 0x43c0, 0x87, 0x99, 0x48, 0xbf, 0x9d, 0x69, 0x4a, 0x79)
/////////////////////////////////////////////////////////////////////////////
// CArrowPropPage::CArrowPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CArrowPropPage
BOOL CArrowPropPage::CArrowPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_ARROW_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CArrowPropPage::CArrowPropPage - Constructor
CArrowPropPage::CArrowPropPage() :
COlePropertyPage(IDD, IDS_ARROW_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CArrowPropPage)
// NOTE: ClassWizard will add member initialization here
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CArrowPropPage::DoDataExchange - Moves data between page and properties
void CArrowPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CArrowPropPage)
// 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);
}
/////////////////////////////////////////////////////////////////////////////
// CArrowPropPage message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?