added wxSIZE_FORCE flag for SetSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1646,9 +1646,11 @@ void wxWindowMSW::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
GetPosition(¤tX, ¤tY);
|
||||
GetSize(¤tW, ¤tH);
|
||||
|
||||
// ... and don't do anything (avoiding flicker) if it's already ok
|
||||
// ... and don't do anything (avoiding flicker) if it's already ok unless
|
||||
// we're forced to resize the window
|
||||
if ( x == currentX && y == currentY &&
|
||||
width == currentW && height == currentH )
|
||||
width == currentW && height == currentH &&
|
||||
!(sizeFlags & wxSIZE_FORCE) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user