home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap04 / lst43 / lst43ppg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-26  |  2.3 KB  |  77 lines

  1. // Lst43Ppg.cpp : Implementation of the CLst43PropPage property page class.
  2.  
  3. #include "stdafx.h"
  4. #include "lst43.h"
  5. #include "Lst43Ppg.h"
  6.  
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13.  
  14. IMPLEMENT_DYNCREATE(CLst43PropPage, COlePropertyPage)
  15.  
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // Message map
  19.  
  20. BEGIN_MESSAGE_MAP(CLst43PropPage, COlePropertyPage)
  21.     //{{AFX_MSG_MAP(CLst43PropPage)
  22.     // NOTE - ClassWizard will add and remove message map entries
  23.     //    DO NOT EDIT what you see in these blocks of generated code !
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // Initialize class factory and guid
  30.  
  31. IMPLEMENT_OLECREATE_EX(CLst43PropPage, "LST43.Lst43PropPage.1",
  32.     0x6b70daf, 0x1818, 0x11d0, 0xa6, 0xad, 0, 0xaa, 0, 0x60, 0x25, 0x53)
  33.  
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CLst43PropPage::CLst43PropPageFactory::UpdateRegistry -
  37. // Adds or removes system registry entries for CLst43PropPage
  38.  
  39. BOOL CLst43PropPage::CLst43PropPageFactory::UpdateRegistry(BOOL bRegister)
  40. {
  41.     if (bRegister)
  42.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  43.             m_clsid, IDS_LST43_PPG);
  44.     else
  45.         return AfxOleUnregisterClass(m_clsid, NULL);
  46. }
  47.  
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CLst43PropPage::CLst43PropPage - Constructor
  51.  
  52. CLst43PropPage::CLst43PropPage() :
  53.     COlePropertyPage(IDD, IDS_LST43_PPG_CAPTION)
  54. {
  55.     //{{AFX_DATA_INIT(CLst43PropPage)
  56.     // NOTE: ClassWizard will add member initialization here
  57.     //    DO NOT EDIT what you see in these blocks of generated code !
  58.     //}}AFX_DATA_INIT
  59. }
  60.  
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63. // CLst43PropPage::DoDataExchange - Moves data between page and properties
  64.  
  65. void CLst43PropPage::DoDataExchange(CDataExchange* pDX)
  66. {
  67.     //{{AFX_DATA_MAP(CLst43PropPage)
  68.     // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
  69.     //    DO NOT EDIT what you see in these blocks of generated code !
  70.     //}}AFX_DATA_MAP
  71.     DDP_PostProcessing(pDX);
  72. }
  73.  
  74.  
  75. /////////////////////////////////////////////////////////////////////////////
  76. // CLst43PropPage message handlers
  77.