// stdafx.h : 可在此標頭檔中包含標準的系統 Include 檔, // 或是經常使用卻很少變更的 // 專案專用 Include 檔案 #pragma once #pragma comment(linker, "/nodefaultlib:libc.lib") #pragma comment(linker, "/nodefaultlib:libcd.lib") // 注意 - 這是數值,與目標版本的 Windows CE OS 並沒有太大關係 #define WINVER _WIN32_WCE #ifndef VC_EXTRALEAN #define VC_EXTRALEAN // 從 Windows 標頭排除不常使用的成員 #endif #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 明確定義部分的 CString 建構函式 #ifdef _CE_DCOM #define _ATL_APARTMENT_THREADED #endif // 關閉 MFC 隱藏一些常見或可忽略警告訊息的功能 #define _AFX_ALL_WARNINGS #include #if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP) #define SHELL_AYGSHELL #endif #include // MFC 核心與標準元件 #include // MFC 擴充功能 #ifndef _AFX_NO_OLE_SUPPORT #include // MFC 支援的 Internet Explorer 4 通用控制項 #endif [!if TREE_VIEW || LIST_VIEW] #include [!endif] [!if ACTIVEX_CONTROLS] #include // MFC Automation 類別 [!endif] #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC 支援的 Windows 通用控制項 #endif // _AFX_NO_AFXCMN_SUPPORT [!if SOCKETS] #include // MFC 通訊端擴充功能 [!endif] [!if ATL_SUPPORT] #include extern CComModule _Module; [!endif] #if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP) #ifndef _DEVICE_RESOLUTION_AWARE #define _DEVICE_RESOLUTION_AWARE #endif #endif #ifdef _DEVICE_RESOLUTION_AWARE #include "DeviceResolutionAware.h" #endif [!if !MULTIPLE_PLATFORM] [!if POCKETPC2003_UI_MODEL || SMARTPHONE2003_UI_MODEL] #include #pragma comment(lib, "aygshell.lib") [!endif] [!else] [!if POCKETPC2003_UI_MODEL || SMARTPHONE2003_UI_MODEL] #ifdef SHELL_AYGSHELL #include #pragma comment(lib, "aygshell.lib") #endif // SHELL_AYGSHELL [!endif] [!endif] #if (_WIN32_WCE < 0x500) && ( defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP) ) #pragma comment(lib, "ccrtrtti.lib") #ifdef _X86_ #if defined(_DEBUG) #pragma comment(lib, "libcmtx86d.lib") #else #pragma comment(lib, "libcmtx86.lib") #endif #endif #endif #include