From: Dimitri Schoolwerth Date: Sat, 8 May 2004 00:45:38 +0000 (+0000) Subject: don't repaint window if hidden: reduces flickering of hidden windows which change... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/602e4c15ffcd316b94f684175639d30070e8b866 don't repaint window if hidden: reduces flickering of hidden windows which change position (resulting in a repaint) due to for example sizer code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index b3f509f27c..95d950940f 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1501,7 +1501,7 @@ void wxWindowMSW::DoMoveWindow(int x, int y, int width, int height) width = 0; if (height < 0) height = 0; - if ( !::MoveWindow(GetHwnd(), x, y, width, height, TRUE) ) + if ( !::MoveWindow(GetHwnd(), x, y, width, height, IsShown() /*Repaint?*/) ) { wxLogLastError(wxT("MoveWindow")); }