From 602e4c15ffcd316b94f684175639d30070e8b866 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sat, 8 May 2004 00:45:38 +0000 Subject: [PATCH] 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 --- src/msw/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); } -- 2.50.0