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:
Vadim Zeitlin
2005-08-11 13:21:45 +00:00
parent 749870835d
commit 952f2aaa86
3 changed files with 16 additions and 5 deletions

View File

@@ -1646,9 +1646,11 @@ void wxWindowMSW::DoSetSize(int x, int y, int width, int height, int sizeFlags)
GetPosition(&currentX, &currentY);
GetSize(&currentW, &currentH);
// ... 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;
}