]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gdiobj.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / msw / gdiobj.cpp
index 447c88327bb8ad96c39c27648e743ef3c95d4e31..cc4398582d6e71792c9131fc373650f40fb8327f 100644 (file)
@@ -16,6 +16,8 @@
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
+#include "wx/gdiobj.h"
+
 #ifndef WX_PRECOMP
     #include <stdio.h>
     #include "wx/list.h"
 #ifndef WX_PRECOMP
     #include <stdio.h>
     #include "wx/list.h"
     #include "wx/app.h"
 #endif
 
     #include "wx/app.h"
 #endif
 
-#include "wx/gdiobj.h"
 #include "wx/msw/private.h"
 
 #include "wx/msw/private.h"
 
-IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
-
-#define M_GDIDATA wx_static_cast(wxGDIRefData*, m_refData)
+#define M_GDIDATA static_cast<wxGDIRefData*>(m_refData)
 
 /*
 void wxGDIObject::IncrementResourceUsage(void)
 
 /*
 void wxGDIObject::IncrementResourceUsage(void)