root.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:1k
- // [!output APP_HEADER] : main header file for the [!output PROJECT_NAME] application
- //
- #pragma once
- #ifndef __AFXWIN_H__
- #error "include 'stdafx.h' before including this file for PCH"
- #endif
- #include "resource.h" // main symbols
- // [!output APP_CLASS]:
- // See [!output APP_IMPL] for the implementation of this class
- //
- class [!output APP_CLASS] : public [!output APP_BASE_CLASS]
- {
- public:
- [!output APP_CLASS]();
- [!if APP_TYPE_MTLD]
- [!if !DOCVIEW]
- CArray<HWND, HWND> m_aryFrames;
- [!else]
- protected:
- CMultiDocTemplate* m_pDocTemplate;
- [!endif]
- public:
- [!endif]
- // Overrides
- public:
- virtual BOOL InitInstance();
- [!if APP_TYPE_MDI]
- [!if !DOCVIEW]
- virtual int ExitInstance();
- [!endif]
- [!endif]
- // Implementation
- [!if FULL_SERVER || MINI_SERVER || CONTAINER_SERVER || AUTOMATION]
- COleTemplateServer m_server;
- // Server object for document creation
- [!endif]
- [!if !DOCVIEW]
- [!if !APP_TYPE_SDI]
- protected:
- HMENU m_hMDIMenu;
- HACCEL m_hMDIAccel;
- [!endif]
- public:
- [!endif]
- afx_msg void OnAppAbout();
- [!if !DOCVIEW]
- [!if APP_TYPE_MDI]
- afx_msg void OnFileNew();
- [!endif]
- [!endif]
- [!if APP_TYPE_MTLD]
- afx_msg void OnFileNewFrame();
- [!if DOCVIEW]
- afx_msg void OnFileNew();
- [!endif]
- [!endif]
- DECLARE_MESSAGE_MAP()
- };
- extern [!output APP_CLASS] theApp;