]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/wrapgdip.h
1aabe66ec61db15f65e4abccc07095c3ea0569ea
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/wrapgdip.h
3 // Purpose: wrapper around <gdiplus.h> header
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MSW_WRAPGDIP_H_
12 #define _WX_MSW_WRAPGDIP_H_
14 #include "wx/msw/wrapwin.h"
16 // these macros must be defined before gdiplus.h is included but we explicitly
17 // prevent windows.h from defining them in wx/msw/wrapwin.h as they conflict
18 // with standard functions of the same name elsewhere, so we have to pay for it
19 // by manually redefining them ourselves here
21 #define max(a,b) (((a) > (b)) ? (a) : (b))
25 #define min(a,b) (((a) < (b)) ? (a) : (b))
29 using namespace Gdiplus
;
31 #endif // _WX_MSW_WRAPGDIP_H_