From f5259d07d6f361d1f92b3f16b71524895b21788a Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 12 Mar 2013 23:20:53 +0000 Subject: [PATCH] ------------------------------------------------------------------------ r4252 | acceptthis | 2013-03-08 04:23:40 +0000 (Fri, 08 Mar 2013) | 1 line mingw32 apparently doesn't define those either. ------------------------------------------------------------------------ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4248 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/qccgui.c | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/engine/qclib/qccgui.c b/engine/qclib/qccgui.c index 8be328ff3..f530710a1 100644 --- a/engine/qclib/qccgui.c +++ b/engine/qclib/qccgui.c @@ -10,6 +10,31 @@ #include "gui.h" +#ifndef TVM_SETBKCOLOR +#define TVM_SETBKCOLOR (TV_FIRST + 29) +#endif +#ifndef TreeView_SetBkColor +#define TreeView_SetBkColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)(clr)) +#endif + + +#ifndef TTF_TRACK +#define TTF_TRACK 0x0020 +#endif +#ifndef TTF_ABSOLUTE +#define TTF_ABSOLUTE 0x0080 +#endif +#ifndef TTM_SETMAXTIPWIDTH +#define TTM_SETMAXTIPWIDTH (WM_USER + 24) +#endif +#ifndef TTM_TRACKACTIVATE +#define TTM_TRACKACTIVATE (WM_USER + 17) +#endif +#ifndef TTM_TRACKPOSITION +#define TTM_TRACKPOSITION (WM_USER + 18) +#endif + /* ============== LoadFile @@ -464,23 +489,6 @@ char *GetTooltipText(editor_t *editor) else return NULL;//"Type info not available. Compile first."; } - -#ifndef TTF_TRACK -#define TTF_TRACK 0x0020 -#endif -#ifndef TTF_ABSOLUTE -#define TTF_ABSOLUTE 0x0080 -#endif -#ifndef TTM_SETMAXTIPWIDTH -#define TTM_SETMAXTIPWIDTH (WM_USER + 24) -#endif -#ifndef TTM_TRACKACTIVATE -#define TTM_TRACKACTIVATE (WM_USER + 17) -#endif -#ifndef TTM_TRACKPOSITION -#define TTM_TRACKPOSITION (WM_USER + 18) -#endif - static LONG CALLBACK EditorWndProc(HWND hWnd,UINT message, WPARAM wParam,LPARAM lParam) {