Don't repaint window if hidden

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-02-20 10:39:50 +00:00
parent 8ee64db5c1
commit 71f2ad997a

View 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 // otherwise (or if deferring failed) move the window in place immediately
if ( !hdwp ) if ( !hdwp )
{ {
if ( !::MoveWindow(GetHwnd(), x, y, width, height, TRUE) ) if ( !::MoveWindow(GetHwnd(), x, y, width, height, IsShown()) )
{ {
wxLogLastError(wxT("MoveWindow")); wxLogLastError(wxT("MoveWindow"));
} }