]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mdi.cpp
support not-quite-owner-drawn mode when we draw only the bitmap and the system takes...
[wxWidgets.git] / src / msw / mdi.cpp
index 5a3fcf83af344e15adbd389158448d15819bdd9e..d3ed9137f9cdbe10e8e8e0971115c53df5e48922 100644 (file)
@@ -839,8 +839,10 @@ void wxMDIChildFrame::DoGetPosition(int *x, int *y) const
   wxMDIParentFrame *mdiParent = (wxMDIParentFrame *)GetParent();
   ::ScreenToClient((HWND) mdiParent->GetClientWindow()->GetHWND(), &point);
 
-  *x = point.x;
-  *y = point.y;
+  if (x)
+      *x = point.x;
+  if (y)
+      *y = point.y;
 }
 
 void wxMDIChildFrame::InternalSetMenuBar()