home *** CD-ROM | disk | FTP | other *** search
- // SimplePpg.cpp : Implementation of the CSimplePropPage property page class.
-
- #include "stdafx.h"
- #include "Simple.h"
- #include "SimplePpg.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
-
- IMPLEMENT_DYNCREATE(CSimplePropPage, COlePropertyPage)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // Message map
-
- BEGIN_MESSAGE_MAP(CSimplePropPage, COlePropertyPage)
- //{{AFX_MSG_MAP(CSimplePropPage)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
-
- /////////////////////////////////////////////////////////////////////////////
- // Initialize class factory and guid
-
- IMPLEMENT_OLECREATE_EX(CSimplePropPage, "SIMPLE.SimplePropPage.1",
- 0xc48a81e4, 0x4384, 0x11d0, 0x9c, 0x9d, 0, 0, 0, 0, 0, 0)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CSimplePropPage::CSimplePropPageFactory::UpdateRegistry -
- // Adds or removes system registry entries for CSimplePropPage
-
- BOOL CSimplePropPage::CSimplePropPageFactory::UpdateRegistry(BOOL bRegister)
- {
- if (bRegister)
- return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
- m_clsid, IDS_SIMPLE_PPG);
- else
- return AfxOleUnregisterClass(m_clsid, NULL);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CSimplePropPage::CSimplePropPage - Constructor
-
- CSimplePropPage::CSimplePropPage() :
- COlePropertyPage(IDD, IDS_SIMPLE_PPG_CAPTION)
- {
- //{{AFX_DATA_INIT(CSimplePropPage)
- //}}AFX_DATA_INIT
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CSimplePropPage::DoDataExchange - Moves data between page and properties
-
- void CSimplePropPage::DoDataExchange(CDataExchange* pDX)
- {
- //{{AFX_DATA_MAP(CSimplePropPage)
- //}}AFX_DATA_MAP
- DDP_PostProcessing(pDX);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CSimplePropPage message handlers
-