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
This commit is contained in:
parent
0dba08dd39
commit
5e6014ea91
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user