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