[!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] #pragma once #ifndef VC_EXTRALEAN #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #endif #include "targetver.h" #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit [!if NO_MFC_CONTROLS] #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS // remove support for MFC controls in dialogs [!endif] // turns off MFC's hiding of some common and often safely ignored warning messages #define _AFX_ALL_WARNINGS #include // MFC core and standard components #include // MFC extensions [!if APP_TYPE_MTLD && !DOCVIEW] #include // MFC collection classes [!endif] [!if TREE_VIEW || LIST_VIEW || PROJECT_STYLE_EXPLORER] #include [!endif] [!if CONTAINER || MINI_SERVER || FULL_SERVER || CONTAINER_SERVER] #include // MFC OLE classes [!if CONTAINER || CONTAINER_SERVER] #include // MFC OLE dialog classes [!endif] [!endif] [!if AUTOMATION || ACTIVEX_CONTROLS] #include // MFC Automation classes [!endif] [!if ACTIVE_DOC_SERVER] #include [!endif] [!if DB_SUPPORT_HEADER_ONLY || DB_VIEW_NO_FILE] // Here, minimal DB support is requested. No view is chosen. [!endif] [!if DB_VIEW_WITH_FILE] // Here, DB support with view is chosen. [!endif] #ifndef _AFX_NO_OLE_SUPPORT #include // MFC support for Internet Explorer 4 Common Controls #endif #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT #include // MFC support for ribbons and control bars [!if HTML_VIEW || HTML_EDITVIEW] #include // MFC HTML view support [!endif] [!if SOCKETS] #include // MFC socket extensions [!endif] [!if RICH_EDIT_VIEW] #include // MFC rich edit classes [!endif] [!if ATL_SUPPORT] #include extern CComModule _Module; [!endif] [!if OLEDB] #include #include #include [!endif] [!if DB_SUPPORT_OLEDB && DB_SUPPORT_HEADER_ONLY ] #include #include #include [!endif] [!if ODBC] #include // ODBC [!endif] [!if DB_SUPPORT_ODBC && DB_SUPPORT_HEADER_ONLY ] #include // ODBC [!endif] [!if HTML_DIALOG] #include // HTML Dialogs [!endif] [!if APP_TYPE_DLG] [!if AUTOMATION] // This macro is the same as IMPLEMENT_OLECREATE, except it passes TRUE // for the bMultiInstance parameter to the COleObjectFactory constructor. // We want a separate instance of this application to be launched for // each automation proxy object requested by automation controllers. #ifndef IMPLEMENT_OLECREATE2 #define IMPLEMENT_OLECREATE2(class_name, external_name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ AFX_DATADEF COleObjectFactory class_name::factory(class_name::guid, \ RUNTIME_CLASS(class_name), TRUE, _T(external_name)); \ const AFX_DATADEF GUID class_name::guid = \ { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }; #endif // IMPLEMENT_OLECREATE2 [!endif] [!endif] [!if MANIFEST] #ifdef _UNICODE #if defined _M_IX86 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_X64 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") #else #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") #endif #endif [!endif]