[!if RIBBON_TOOLBAR] // This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface // (the "Fluent UI") and is provided only as referential material to supplement the // Microsoft Foundation Classes Reference and related electronic documentation // included with the MFC C++ library software. // License terms to copy, use or distribute the Fluent UI are available separately. // To learn more about our Fluent UI licensing program, please visit // https://go.microsoft.com/fwlink/?LinkId=238214. // // Copyright (C) Microsoft Corporation // All rights reserved. [!endif] // $appheader$ : main header file for the $projectname$ application // #pragma once #ifndef __AFXWIN_H__ #error "include 'pch.h' before including this file for PCH" #endif #include "resource.h" // main symbols // $appclass$: // See $appimpl$ for the implementation of this class // class $appclass$ : public $appbaseclass$ { public: $appclass$() noexcept; [!if APP_TYPE_MTLD] [!if !DOCVIEW] CArray m_aryFrames; [!else] protected: CMultiDocTemplate* m_pDocTemplate; [!endif] public: [!endif] // Overrides public: virtual BOOL InitInstance(); [!if CONTAINER || MINI_SERVER || FULL_SERVER || CONTAINER_SERVER || AUTOMATION || OLEDB || ACTIVEX_CONTROLS || ACCESSIBILITY || RIBBON_TOOLBAR || APP_TYPE_MDI || !DOCVIEW] virtual int ExitInstance(); [!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] [!if ENABLE_VISUAL_STYLE_SWITCHING] UINT m_nAppLook; [!endif] [!if MENUBAR_TOOLBAR || ADV_DOCKING_EXPLORER || ADV_DOCKING_OUTPUT || ADV_DOCKING_PROPERTIES || ADV_DOCKING_NAVIGATION] BOOL m_bHiColorIcons; [!endif] [!if MENUBAR_TOOLBAR || RIBBON_TOOLBAR] virtual void PreLoadState(); virtual void LoadCustomState(); virtual void SaveCustomState(); [!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 $appclass$ theApp;