// stdafx.h : 可在此標頭檔中包含標準的系統 Include 檔, // 或是經常使用卻很少變更的 // 專案專用 Include 檔案 #pragma once #ifndef _SECURE_ATL #define _SECURE_ATL 1 #endif #ifndef VC_EXTRALEAN #define VC_EXTRALEAN // 從 Windows 標頭排除不常使用的成員 #endif // 如果您有必須優先選取的平台,請修改下列定義。 // 參考 MSDN 取得不同平台對應值的最新資訊。 #ifndef WINVER // 允許使用 Windows XP (含) 以後版本的特定功能。 #define WINVER 0x0501 // 將它變更為針對 Windows 其他版本的適當值。 #endif #ifndef _WIN32_WINNT // 允許使用 Windows XP (含) 以後版本的特定功能。 #define _WIN32_WINNT 0x0501 // 將它變更為針對 Windows 其他版本的適當值。 #endif #ifndef _WIN32_WINDOWS // 允許使用 Windows 98 (含) 以後版本的特定功能。 #define _WIN32_WINDOWS 0x0410 // 將它變更為針對 Windows Me (含) 以後版本的適當值。 #endif #ifndef _WIN32_IE // 允許使用 IE 6.0 (含) 以後版本的特定功能。 #define _WIN32_IE 0x0600 // 將它變更為針對 IE 其他版本的適當值。 #endif #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 明確定義部分的 CString 建構函式 // 關閉 MFC 隱藏一些常見或可忽略警告訊息的功能 #define _AFX_ALL_WARNINGS #include // MFC 核心與標準元件 #include // MFC 擴充功能 [!if APP_TYPE_MTLD && !DOCVIEW] #include // MFC 集合類別 [!endif] [!if TREE_VIEW || LIST_VIEW || PROJECT_STYLE_EXPLORER] #include [!endif] [!if CONTAINER || MINI_SERVER || FULL_SERVER || CONTAINER_SERVER] #include // MFC OLE 類別 [!if CONTAINER || CONTAINER_SERVER] #include // MFC OLE 對話方塊類別 [!endif] [!endif] [!if AUTOMATION || ACTIVEX_CONTROLS] #include // MFC Automation 類別 [!endif] [!if ACTIVE_DOC_SERVER] #include [!endif] [!if DB_SUPPORT_HEADER_ONLY || DB_VIEW_NO_FILE] // 在此,必須要求最小的 DB 支援。沒有選擇檢視。 [!endif] [!if DB_VIEW_WITH_FILE] // 在此,已經選擇有檢視的 DB 支援。 [!endif] #ifndef _AFX_NO_OLE_SUPPORT #include // MFC 支援的 Internet Explorer 4 通用控制項 #endif #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC 支援的 Windows 通用控制項 #endif // _AFX_NO_AFXCMN_SUPPORT [!if HTML_VIEW || HTML_EDITVIEW] #include // MFC HTML 檢視支援 [!endif] [!if SOCKETS] #include // MFC 通訊端擴充功能 [!endif] [!if RICH_EDIT_VIEW] #include // MFC Rich Edit 類別 [!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 對話方塊 [!endif] [!if APP_TYPE_DLG] [!if AUTOMATION] // 此巨集與 IMPLEMENT_OLECREATE 相同 (除了其對 // bMultiInstance 參數傳遞 TRUE 到 COleObjectFactory 建構函式外), // 我們需要此應用程式的分開執行個體,以對 Automation 控制器 // 所要求的 Automation Proxy 物件啟動。 #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_IA64 #pragma comment(linker,"/manifestdependency:\"type='win64' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_X64 #pragma comment(linker,"/manifestdependency:\"type='win64' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x64' 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]