// [!output APP_HEADER] : [!output PROJECT_NAME] 應用程式的主標頭檔 // #pragma once #ifndef __AFXWIN_H__ #error "對 PCH 包含此檔案前先包含 'stdafx.h'" #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;