home *** CD-ROM | disk | FTP | other *** search
/ distrib.akp.su/Programming/Vb-6+Rus/ / distrib.akp.su.tar / distrib.akp.su / Programming / Vb-6+Rus / COMMON / MSDEV98 / BIN / MFCCLWZ.DLL / SRCDATA / OPROPPG.CPP < prev    next >
Text File  |  1998-06-18  |  2KB  |  72 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // %1 dialog
  3.  
  4. IMPLEMENT_DYNCREATE(%1, COlePropertyPage)
  5.  
  6.  
  7. /////////////////////////////////////////////////////////////////////////////
  8. // Message map
  9.  
  10. BEGIN_MESSAGE_MAP(%1, COlePropertyPage)
  11.     //{{AFX_MSG_MAP(%1)
  12.     // NOTE - ClassWizard will add and remove message map entries
  13.     //    DO NOT EDIT what you see in these blocks of generated code !
  14.     //}}AFX_MSG_MAP
  15. END_MESSAGE_MAP()
  16.  
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // Initialize class factory and guid
  20.  
  21. // {%e}
  22. IMPLEMENT_OLECREATE_EX(%1, "%a.%1",
  23.     %7)
  24.  
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // %1::%1Factory::UpdateRegistry -
  28. // Adds or removes system registry entries for %1
  29.  
  30. BOOL %1::%1Factory::UpdateRegistry(BOOL bRegister)
  31. {
  32.     // TODO: Define string resource for page type; replace '0' below with ID.
  33.  
  34.     if (bRegister)
  35.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  36.             m_clsid, 0);
  37.     else
  38.         return AfxOleUnregisterClass(m_clsid, NULL);
  39. }
  40.  
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43. // %1::%1 - Constructor
  44.  
  45. // TODO: Define string resource for page caption; replace '0' below with ID.
  46.  
  47. %1::%1() :
  48.     COlePropertyPage(IDD, 0)
  49. {
  50.     //{{AFX_DATA_INIT(%1)
  51.     // NOTE: ClassWizard will add member initialization here
  52.     //    DO NOT EDIT what you see in these blocks of generated code !
  53.     //}}AFX_DATA_INIT
  54. }
  55.  
  56.  
  57. /////////////////////////////////////////////////////////////////////////////
  58. // %1::DoDataExchange - Moves data between page and properties
  59.  
  60. void %1::DoDataExchange(CDataExchange* pDX)
  61. {
  62.     // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
  63.     //    DO NOT EDIT what you see in these blocks of generated code !
  64.     //{{AFX_DATA_MAP(%1)
  65.     //}}AFX_DATA_MAP
  66.     DDP_PostProcessing(pDX);
  67. }
  68.  
  69.  
  70. /////////////////////////////////////////////////////////////////////////////
  71. // %1 message handlers