summaryrefslogtreecommitdiff
path: root/include/msapi
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-16 08:31:40 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-16 08:31:40 +0000
commitd1b34f9184e45f402d87db5bd9371e15bee9c50b (patch)
treecc311a229ef611b4e85a583528eb2f269999b86a /include/msapi
parente158cc07f73bc223fb195d574568f23e9e141943 (diff)
projects: final fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@1477 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/msapi')
-rw-r--r--include/msapi/afxres.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/include/msapi/afxres.h b/include/msapi/afxres.h
new file mode 100644
index 0000000000..15e139c892
--- /dev/null
+++ b/include/msapi/afxres.h
@@ -0,0 +1,71 @@
+/* winres.h Missing in MinGW. Adding missing constants */
+
+#ifdef __GNUC__
+#ifndef __WINRES_H
+#define __WINRES_H
+
+#ifndef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
+#ifndef _WIN32_IE
+#define _WIN32_IE 0x0501
+#endif
+
+#define HOTKEY_CLASSA "msctls_hotkey32"
+
+#ifdef _COMMCTRL_H
+#error "Resource should include winres.h first!"
+#endif
+
+/* FIXME: It seems if we include richedit.h later we got a problem with MinGW + UNICODE */
+#ifdef UNICODE
+#undef UNICODE
+#endif
+
+#include <winresrc.h>
+
+#ifndef IDC_STATIC
+#define IDC_STATIC (-1)
+#endif
+
+#ifndef IDCLOSE
+#define IDCLOSE 8
+#endif
+
+#endif
+#else
+
+#ifdef _AFX_MINREBUILD
+#pragma component(minrebuild, off)
+#endif
+
+#define VS_VERSION_INFO 1
+
+#ifdef APSTUDIO_INVOKED
+#define APSTUDIO_HIDDEN_SYMBOLS // Ignore following symbols
+#endif
+
+#ifndef WINVER
+#define WINVER 0x0400 // default to Windows Version 4.0
+#endif
+
+#include <winresrc.h>
+
+// operation messages sent to DLGINIT
+#define LB_ADDSTRING (WM_USER+1)
+#define CB_ADDSTRING (WM_USER+3)
+
+#ifdef APSTUDIO_INVOKED
+#undef APSTUDIO_HIDDEN_SYMBOLS
+#endif
+
+#ifdef IDC_STATIC
+#undef IDC_STATIC
+#endif
+#define IDC_STATIC (-1)
+
+#ifdef _AFX_MINREBUILD
+#pragma component(minrebuild, on)
+#endif
+
+#endif