X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c219cecc129fd06327faa9d0a417550740f8bd64..babd4308f2704f4234e271d29a8e8c1e211b4af6:/src/msw/frame.cpp diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index db3bd68269..3549546754 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -175,8 +175,10 @@ void wxFrame::DoGetClientSize(int *x, int *y) const rect.bottom -= pt.y; rect.right -= pt.x; - *x = rect.right; - *y = rect.bottom; + if ( x ) + *x = rect.right; + if ( y ) + *y = rect.bottom; } // Set the client size (i.e. leave the calculation of borders etc. @@ -878,10 +880,7 @@ bool wxFrame::HandlePaint() } else { - wxPaintEvent event(m_windowId); - event.m_eventObject = this; - - return GetEventHandler()->ProcessEvent(event); + return wxWindow::HandlePaint(); } } else