]> git.saurik.com Git - wxWidgets.git/commitdiff
send the size event in SendSizeEvent() instead of posting it, otherwise we have no...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 29 Jul 2008 12:34:03 +0000 (12:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 29 Jul 2008 12:34:03 +0000 (12:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/frame.cpp

index 4cf00e18b3e4e040303c699fb89f529afd9e04ff..3e4ff854b78a2f5cc509eb9e07f53d32203b75df 100644 (file)
@@ -316,7 +316,7 @@ void wxFrame::SendSizeEvent()
     {
         RECT r = wxGetWindowRect(GetHwnd());
 
-        (void)::PostMessage(GetHwnd(), WM_SIZE,
+        (void)::SendMessage(GetHwnd(), WM_SIZE,
                             IsMaximized() ? SIZE_MAXIMIZED : SIZE_RESTORED,
                             MAKELPARAM(r.right - r.left, r.bottom - r.top));
     }