-
Notifications
You must be signed in to change notification settings - Fork 1
/
fxwin.h
62 lines (50 loc) · 1.08 KB
/
fxwin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// used for windows compilation only
#ifndef FXWIN_H
#define FXWIN_H
// only windows
#ifdef WIN32
#define NTDDI_VERSION NTDDI_WIN7 // Specifies that the minimum required platform is Windows 7.
#define STRICT_TYPED_ITEMIDS // Utilize strictly typed IDLists
/*
#define WINVER 0x0500
#define _WIN32_WINNT WINVER
#define _WIN32_DCOM
*/
#define WINVER _WIN32_WINNT_WIN7
#define _WIN32_WINNT WINVER
#define NOMINMAX
#include <windows.h>
#include <combaseapi.h>
#include <commdlg.h>
#include <shlobj_core.h>
#include <shlwapi.h>
#include <shobjidl.h>
#include <wincrypt.h>
#include <wininet.h>
extern LPCWSTR g_wszAppID;
#ifdef WITH_MAP_EXPORT
#include <gdiplus.h>
#include <gdiplusimagecodec.h>
#include <gdiplusimaging.h>
#endif
#endif // WIN32
#ifdef CSMAP_MAIN
#ifdef WIN32
// use main() as starting point
#pragma comment(linker, "/entry:mainCRTStartup")
#endif // WIN32
#ifdef WIN32
void deinitSystems()
{
CoUninitialize();
}
#endif
void initSystems()
{
#ifdef WIN32
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
atexit(deinitSystems);
#endif
}
#endif // CSMAP_MAIN
#endif // FXWIN_H