use SubclassWin() insteaf of just wxAssociateWinWithHandle() to make sure we generate wxWindowCreateEvents for MDI frames (see patch 1411774)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -772,7 +772,13 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
|
|||||||
m_hWnd = (WXHWND)::SendMessage(GetWinHwnd(parent->GetClientWindow()),
|
m_hWnd = (WXHWND)::SendMessage(GetWinHwnd(parent->GetClientWindow()),
|
||||||
WM_MDICREATE, 0, (LONG)(LPSTR)&mcs);
|
WM_MDICREATE, 0, (LONG)(LPSTR)&mcs);
|
||||||
|
|
||||||
wxAssociateWinWithHandle((HWND) GetHWND(), this);
|
if ( !m_hWnd )
|
||||||
|
{
|
||||||
|
wxLogLastError(_T("WM_MDICREATE"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
SubclassWin(m_hWnd);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user