From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/msapi/winres.h | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 include/msapi/winres.h (limited to 'include/msapi/winres.h') 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 + +#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 + +// 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 -- cgit v1.2.3