summaryrefslogtreecommitdiff
path: root/include/msapi/winres.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-05-15 10:38:20 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-05-15 10:38:20 +0000
commit48540940b6c28bb4378abfeb500ec45a625b37b6 (patch)
tree2ef294c0763e802f91d868bdef4229b6868527de /include/msapi/winres.h
parent5c350913f011e119127baeb32a6aedeb4f0d33bc (diff)
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/msapi/winres.h')
-rw-r--r--include/msapi/winres.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/include/msapi/winres.h b/include/msapi/winres.h
new file mode 100644
index 0000000000..15e139c892
--- /dev/null
+++ b/include/msapi/winres.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