提交 | 用户 | age
|
61deef
|
1 |
#pragma once
|
Q |
2 |
|
|
3 |
#ifndef VC_EXTRALEAN
|
|
4 |
#define VC_EXTRALEAN // 从 Windows 头中排除极少使用的资料
|
|
5 |
#endif
|
|
6 |
|
|
7 |
#include "targetver.h"
|
|
8 |
|
|
9 |
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的
|
|
10 |
|
|
11 |
// 关闭 MFC 的一些常见且经常可放心忽略的隐藏警告消息
|
|
12 |
#define _AFX_ALL_WARNINGS
|
|
13 |
|
|
14 |
#include <afxwin.h> // MFC 核心组件和标准组件
|
|
15 |
#include <afxext.h> // MFC 扩展
|
|
16 |
|
|
17 |
|
|
18 |
#include <afxdisp.h> // MFC 自动化类
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
#ifndef _AFX_NO_OLE_SUPPORT
|
|
23 |
#include <afxdtctl.h> // MFC 对 Internet Explorer 4 公共控件的支持
|
|
24 |
#endif
|
|
25 |
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
|
26 |
#include <afxcmn.h> // MFC 对 Windows 公共控件的支持
|
|
27 |
#endif // _AFX_NO_AFXCMN_SUPPORT
|
|
28 |
|
|
29 |
#include <afxcontrolbars.h> // MFC 支持功能区和控制条
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
#ifdef _UNICODE
|
|
40 |
#if defined _M_IX86
|
|
41 |
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
42 |
#elif defined _M_X64
|
|
43 |
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
44 |
#else
|
|
45 |
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
46 |
#endif
|
|
47 |
#endif
|
|
48 |
|
|
49 |
|