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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user