]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't repaint window if hidden
authorJulian Smart <julian@anthemion.co.uk>
Sun, 20 Feb 2005 10:39:50 +0000 (10:39 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 20 Feb 2005 10:39:50 +0000 (10:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 0cf5f9959cb7b9f2289a8145f9989c30590bf900..46311d3654b63a0f3016d5b5fa83a4edf36e7eda 100644 (file)
@@ -1523,7 +1523,7 @@ void wxWindowMSW::DoMoveWindow(int x, int y, int width, int height)
     // otherwise (or if deferring failed) move the window in place immediately
     if ( !hdwp )
     {
-        if ( !::MoveWindow(GetHwnd(), x, y, width, height, TRUE) )
+        if ( !::MoveWindow(GetHwnd(), x, y, width, height, IsShown()) )
         {
             wxLogLastError(wxT("MoveWindow"));
         }