]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mdi.cpp
remove HWND association when DestroyWindow
[wxWidgets.git] / src / msw / mdi.cpp
index a9c6967d6390179954f21c7f12ea72ad745ce9b2..25cf16bbce08f8028320d29bde4bde60e584df85 100644 (file)
@@ -68,6 +68,7 @@ extern const wxChar *wxMDIChildFrameClassName;
 extern wxWindow *wxWndHook;                 // from window.cpp
 
 extern void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win);
+extern void wxRemoveHandleAssociation(wxWindow *win);
 
 static HWND invalidHandle = 0;
 
@@ -1042,6 +1043,7 @@ void wxMDIChildFrame::MSWDestroyWindow()
         ::DestroyMenu((HMENU) m_hMenu);
         m_hMenu = 0;
     }
+    wxRemoveHandleAssociation(this);
     m_hWnd = 0;
 }