]> git.saurik.com Git - wxWidgets.git/commitdiff
use SubclassWin() insteaf of just wxAssociateWinWithHandle() to make sure we generate...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 May 2006 22:35:55 +0000 (22:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 May 2006 22:35:55 +0000 (22:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/mdi.cpp

index 63d39498843c7e0d3aede3a8d83e322b3295c25d..716f22007b502420b79998319f9386b9fe1cde2c 100644 (file)
@@ -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;
 }