]> git.saurik.com Git - wxWidgets.git/commitdiff
generate a size event from ShowWithEffect() for consistency with Show()
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 29 Jul 2008 12:35:15 +0000 (12:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 29 Jul 2008 12:35:15 +0000 (12:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 7dfd87df9935a76de35ab6a37d3354550f495bf6..b5cd8d1f6f8316d78be6e684c8341331111f4ba1 100644 (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 )