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

  1. /////////////////////////////////////////////////////////////////////////////
  2. // %1
  3.  
  4. IMPLEMENT_DYNCREATE(%1, CHtmlView)
  5.  
  6. %1::%1()
  7. {
  8. $$IF(OLEAUTO)
  9.     EnableAutomation();
  10. $$ENDIF
  11. $$IF(OLECREATE)
  12.     
  13.     // To keep the application running as long as an OLE automation 
  14.     //    object is active, the constructor calls AfxOleLockApp.
  15.     
  16.     AfxOleLockApp();
  17.  
  18. $$ENDIF
  19.     //{{AFX_DATA_INIT(%1)
  20.         // NOTE: the ClassWizard will add member initialization here
  21.     //}}AFX_DATA_INIT
  22. }
  23.  
  24. %1::~%1()
  25. {
  26. $$IF(OLECREATE)
  27.     // To terminate the application when all objects created with
  28.     //     with OLE automation, the destructor calls AfxOleUnlockApp.
  29.     
  30.     AfxOleUnlockApp();
  31. $$ENDIF
  32. }
  33. $$IF(OLEAUTO)
  34.  
  35. void %1::OnFinalRelease()
  36. {
  37.     // When the last reference for an automation object is released
  38.     // OnFinalRelease is called.  The base class will automatically
  39.     // deletes the object.  Add additional cleanup required for your
  40.     // object before calling the base class.
  41.  
  42.     CHtmlView::OnFinalRelease();
  43. }
  44. $$ENDIF
  45.  
  46. void %1::DoDataExchange(CDataExchange* pDX)
  47. {
  48.     CHtmlView::DoDataExchange(pDX);
  49.     //{{AFX_DATA_MAP(%1)
  50.         // NOTE: the ClassWizard will add DDX and DDV calls here
  51.     //}}AFX_DATA_MAP
  52. }
  53.  
  54.  
  55. BEGIN_MESSAGE_MAP(%1, CHtmlView)
  56.     //{{AFX_MSG_MAP(%1)
  57.         // NOTE - the ClassWizard will add and remove mapping macros here.
  58.     //}}AFX_MSG_MAP
  59. END_MESSAGE_MAP()
  60. $$IF(OLEAUTO)
  61.  
  62. BEGIN_DISPATCH_MAP(%1, CHtmlView)
  63.     //{{AFX_DISPATCH_MAP(%1)
  64.         // NOTE - the ClassWizard will add and remove mapping macros here.
  65.     //}}AFX_DISPATCH_MAP
  66. END_DISPATCH_MAP()
  67.  
  68. // Note: we add support for IID_I%c to support typesafe binding
  69. //  from VBA.  This IID must match the GUID that is attached to the 
  70. //  dispinterface in the .ODL file.
  71.  
  72. // {%b}
  73. static const IID IID_I%c =
  74. %d;
  75.  
  76. BEGIN_INTERFACE_MAP(%1, CHtmlView)
  77.     INTERFACE_PART(%1, IID_I%c, Dispatch)
  78. END_INTERFACE_MAP()
  79. $$ENDIF //OLEAUTO
  80. $$IF(OLECREATE)
  81.  
  82. // {%e}
  83. IMPLEMENT_OLECREATE(%1, "%6", %7)
  84. $$ENDIF //OLECREATE
  85.  
  86. /////////////////////////////////////////////////////////////////////////////
  87. // %1 diagnostics
  88.  
  89. #ifdef _DEBUG
  90. void %1::AssertValid() const
  91. {
  92.     CHtmlView::AssertValid();
  93. }
  94.  
  95. void %1::Dump(CDumpContext& dc) const
  96. {
  97.     CHtmlView::Dump(dc);
  98. }
  99. #endif //_DEBUG
  100.  
  101. /////////////////////////////////////////////////////////////////////////////
  102. // %1 message handlers