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:
parent
e7c652bc7a
commit
05ae668ce4
@ -772,7 +772,13 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
|
||||
m_hWnd = (WXHWND)::SendMessage(GetWinHwnd(parent->GetClientWindow()),
|
||||
WM_MDICREATE, 0, (LONG)(LPSTR)&mcs);
|
||||
|
||||
wxAssociateWinWithHandle((HWND) GetHWND(), this);
|
||||
if ( !m_hWnd )
|
||||
{
|
||||
wxLogLastError(_T("WM_MDICREATE"));
|
||||
return false;
|
||||
}
|
||||
|
||||
SubclassWin(m_hWnd);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user