]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/misc2.i
reverted previous commit; include wx/timer.h in wxBase instead
[wxWidgets.git] / wxPython / src / misc2.i
index 97e1b99eb386bc50dbcaff2cef20d204744a2e49..088e2dc6dd7e1c9ae0dc70e6622fef34f30367be 100644 (file)
@@ -175,7 +175,7 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt);
 
 #ifdef __WXMSW__
 bool wxCheckForInterrupt(wxWindow *wnd);
-void wxFlushEvents();
+// link error? void wxFlushEvents();
 #endif
 
 wxWindow* wxGetTopLevelParent(wxWindow *win);
@@ -1720,6 +1720,26 @@ public:
 
 //----------------------------------------------------------------------
 
+%{
+#ifdef __WXMSW__
+#include <wx/msw/private.h>
+#endif
+%}
+
+%inline %{
+
+void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc)
+{
+#ifdef __WXMSW__
+    ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
+//     ::SendMessage(GetHwndOf(window), WM_PRINTCLIENT, (long)GetHdcOf(dc),
+//                   PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN );
+#endif
+}
+
+%}
+//----------------------------------------------------------------------
+
 
 %init %{
     wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");