home *** CD-ROM | disk | FTP | other *** search
- // buttoppg.cpp : Implementation of the CButtonPropPage property page class.
-
- #include "stdafx.h"
- #include "button.h"
- #include "buttoppg.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
-
- IMPLEMENT_DYNCREATE(CButtonPropPage, COlePropertyPage)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // Message map
-
- BEGIN_MESSAGE_MAP(CButtonPropPage, COlePropertyPage)
- //{{AFX_MSG_MAP(CButtonPropPage)
- // 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(CButtonPropPage, "BUTTON.ButtonPropPage.1",
- 0x56a2c5a4, 0x240a, 0x11ce, 0x96, 0xf, 0x52, 0x41, 0x53, 0x48, 0x0, 0x5)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CButtonPropPage::CButtonPropPageFactory::UpdateRegistry -
- // Adds or removes system registry entries for CButtonPropPage
-
- BOOL CButtonPropPage::CButtonPropPageFactory::UpdateRegistry(BOOL bRegister)
- {
- if (bRegister)
- return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
- m_clsid, IDS_BUTTON_PPG);
- else
- return AfxOleUnregisterClass(m_clsid, NULL);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CButtonPropPage::CButtonPropPage - Constructor
-
- CButtonPropPage::CButtonPropPage() :
- COlePropertyPage(IDD, IDS_BUTTON_PPG_CAPTION)
- {
- //{{AFX_DATA_INIT(CButtonPropPage)
- // NOTE: ClassWizard will add member initialization here
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_DATA_INIT
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CButtonPropPage::DoDataExchange - Moves data between page and properties
-
- void CButtonPropPage::DoDataExchange(CDataExchange* pDX)
- {
- //{{AFX_DATA_MAP(CButtonPropPage)
- // 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);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CButtonPropPage message handlers
-