diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 0cf5f9959c..46311d3654 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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")); }