]> git.saurik.com Git - wxWidgets.git/commitdiff
don't repaint window if hidden: reduces flickering of hidden windows which change...
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 8 May 2004 00:45:38 +0000 (00:45 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 8 May 2004 00:45:38 +0000 (00:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index b3f509f27cb1b52496e195d49219d5cce0094136..95d950940fee5af47c94993ef294369954b1e4b8 100644 (file)
@@ -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"));
     }