fixed "missing" initial resize of wxMDIChildFrame

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-06-21 21:10:38 +00:00
parent 2ed1896868
commit 26eb0ba5b8
5 changed files with 59 additions and 26 deletions

View File

@@ -3061,6 +3061,19 @@ bool wxWindow::HandleGetMinMaxInfo(void *mmInfo)
return rc;
}
// generate an artificial resize event
void wxWindow::SendSizeEvent()
{
RECT r;
if ( !::GetWindowRect(GetHwnd(), &r) )
{
wxLogLastError(_T("GetWindowRect"));
}
(void)::PostMessage(GetHwnd(), WM_SIZE, SIZE_RESTORED,
MAKELPARAM(r.right - r.left, r.bottom - r.top));
}
// ---------------------------------------------------------------------------
// command messages
// ---------------------------------------------------------------------------