// [!output APP_HEADER] : [!output PROJECT_NAME] 应用程序的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "resource.h" // 主符号 // [!output APP_CLASS]: // 有关此类的实现,请参阅 [!output APP_IMPL] // class [!output APP_CLASS] : public [!output APP_BASE_CLASS] { public: [!output APP_CLASS](); [!if APP_TYPE_MTLD] [!if !DOCVIEW] CArray m_aryFrames; [!else] protected: CMultiDocTemplate* m_pDocTemplate; [!endif] public: [!endif] // 重写 public: virtual BOOL InitInstance(); [!if APP_TYPE_MDI] [!if !DOCVIEW] virtual int ExitInstance(); [!endif] [!endif] // 实现 [!if FULL_SERVER || MINI_SERVER || CONTAINER_SERVER || AUTOMATION] COleTemplateServer m_server; // 用于文档创建的服务器对象 [!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;