wrapgdip.h 999 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef _WX_MSW_WRAPGDIP_H_
  10. #define _WX_MSW_WRAPGDIP_H_
  11. #include "wx/msw/wrapwin.h"
  12. // these macros must be defined before gdiplus.h is included but we explicitly
  13. // prevent windows.h from defining them in wx/msw/wrapwin.h as they conflict
  14. // with standard functions of the same name elsewhere, so we have to pay for it
  15. // by manually redefining them ourselves here
  16. #ifndef max
  17. #define max(a,b) (((a) > (b)) ? (a) : (b))
  18. #endif
  19. #ifndef min
  20. #define min(a,b) (((a) < (b)) ? (a) : (b))
  21. #endif
  22. #include <gdiplus.h>
  23. using namespace Gdiplus;
  24. #endif // _WX_MSW_WRAPGDIP_H_