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 / PROPSHT.CPP < prev    next >
Text File  |  1998-06-18  |  2KB  |  67 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // %1
  3.  
  4. IMPLEMENT_DYNAMIC(%1, CPropertySheet)
  5.  
  6. %1::%1(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  7.     :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  8. {
  9. $$IF(OLEAUTO)
  10.     EnableAutomation();
  11. $$ENDIF
  12. }
  13.  
  14. %1::%1(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  15.     :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  16. {
  17. $$IF(OLEAUTO)
  18.     EnableAutomation();
  19. $$ENDIF
  20. }
  21.  
  22. %1::~%1()
  23. {
  24. }
  25. $$IF(OLEAUTO)
  26.  
  27. void %1::OnFinalRelease()
  28. {
  29.     // When the last reference for an automation object is released
  30.     // OnFinalRelease is called.  The base class will automatically
  31.     // deletes the object.  Add additional cleanup required for your
  32.     // object before calling the base class.
  33.  
  34.     CPropertySheet::OnFinalRelease();
  35. }
  36. $$ENDIF
  37.  
  38.  
  39. BEGIN_MESSAGE_MAP(%1, CPropertySheet)
  40.     //{{AFX_MSG_MAP(%1)
  41.         // NOTE - the ClassWizard will add and remove mapping macros here.
  42.     //}}AFX_MSG_MAP
  43. END_MESSAGE_MAP()
  44. $$IF(OLEAUTO)
  45.  
  46. BEGIN_DISPATCH_MAP(%1, CPropertySheet)
  47.     //{{AFX_DISPATCH_MAP(%1)
  48.         // NOTE - the ClassWizard will add and remove mapping macros here.
  49.     //}}AFX_DISPATCH_MAP
  50. END_DISPATCH_MAP()
  51.  
  52. // Note: we add support for IID_I%c to support typesafe binding
  53. //  from VBA.  This IID must match the GUID that is attached to the 
  54. //  dispinterface in the .ODL file.
  55.  
  56. // {%b}
  57. static const IID IID_I%c =
  58. %d;
  59.  
  60. BEGIN_INTERFACE_MAP(%1, CPropertySheet)
  61.     INTERFACE_PART(%1, IID_I%c, Dispatch)
  62. END_INTERFACE_MAP()
  63. $$ENDIF //OLEAUTO
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // %1 message handlers