]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/nonownedwnd.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / msw / nonownedwnd.cpp
index 04340b0a583cb5739150b3984f4bd48c89e478fb..09f5ec0f8e1c15e714bc8ab4458a49e3220e3631 100644 (file)
 
 #include "wx/nonownedwnd.h"
 
 
 #include "wx/nonownedwnd.h"
 
-#include "wx/msw/wrapgdip.h"
-#include "wx/graphics.h"
+#if wxUSE_GRAPHICS_CONTEXT
+    #include "wx/msw/wrapgdip.h"
+    #include "wx/graphics.h"
+#endif // wxUSE_GRAPHICS_CONTEXT
+
 #include "wx/scopedptr.h"
 
 // ============================================================================
 #include "wx/scopedptr.h"
 
 // ============================================================================