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:
parent
8a7b111370
commit
602e4c15ff
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user