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
This commit is contained in:
Dimitri Schoolwerth 2004-05-08 00:45:38 +00:00
parent 8a7b111370
commit 602e4c15ff

View 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"));
}