From 5e6014ea91f9d8e6510bba66259479a66a72cde1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 29 Jul 2008 12:34:03 +0000 Subject: [PATCH] send the size event in SendSizeEvent() instead of posting it, otherwise we have no way to trigger immediate relayout; if we need delayed version we should add a separate PostSizeEvent() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 4cf00e18b3..3e4ff854b7 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -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)); } -- 2.45.2