home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////////////////////////////////////////////////////
- // %1
-
- IMPLEMENT_DYNCREATE(%1, CMDIChildWnd)
-
- %1::%1()
- {
- $$IF(OLEAUTO)
- EnableAutomation();
- $$ENDIF
- $$IF(OLECREATE)
-
- // To keep the application running as long as an OLE automation
- // object is active, the constructor calls AfxOleLockApp.
-
- AfxOleLockApp();
- $$ENDIF
- }
-
- %1::~%1()
- {
- $$IF(OLECREATE)
- // To terminate the application when all objects created with
- // with OLE automation, the destructor calls AfxOleUnlockApp.
-
- AfxOleUnlockApp();
- $$ENDIF
- }
- $$IF(OLEAUTO)
-
- void %1::OnFinalRelease()
- {
- // When the last reference for an automation object is released
- // OnFinalRelease is called. The base class will automatically
- // deletes the object. Add additional cleanup required for your
- // object before calling the base class.
-
- CMDIChildWnd::OnFinalRelease();
- }
- $$ENDIF
-
-
- BEGIN_MESSAGE_MAP(%1, CMDIChildWnd)
- //{{AFX_MSG_MAP(%1)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- $$IF(OLEAUTO)
-
- BEGIN_DISPATCH_MAP(%1, CMDIChildWnd)
- //{{AFX_DISPATCH_MAP(%1)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_DISPATCH_MAP
- END_DISPATCH_MAP()
-
- // Note: we add support for IID_I%c to support typesafe binding
- // from VBA. This IID must match the GUID that is attached to the
- // dispinterface in the .ODL file.
-
- // {%b}
- static const IID IID_I%c =
- %d;
-
- BEGIN_INTERFACE_MAP(%1, CMDIChildWnd)
- INTERFACE_PART(%1, IID_I%c, Dispatch)
- END_INTERFACE_MAP()
- $$ENDIF //OLEAUTO
- $$IF(OLECREATE)
-
- // {%e}
- IMPLEMENT_OLECREATE(%1, "%6", %7)
- $$ENDIF //OLECREATE
-
- /////////////////////////////////////////////////////////////////////////////
- // %1 message handlers