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:
@@ -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
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user