generate a size event from ShowWithEffect() for consistency with Show()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-07-29 12:35:15 +00:00
parent 5e6014ea91
commit 7157abfba1

View File

@@ -755,6 +755,11 @@ wxWindowMSW::MSWShowWithEffect(bool show,
if ( !s_pfnAnimateWindow )
return Show(show);
// Show() has a side effect of sending a WM_SIZE to the window, which helps
// ensuring that it's laid out correctly, but AnimateWindow() doesn't do
// this so send the event ourselves
SendSizeEvent();
// prepare to use AnimateWindow()
if ( !timeout )