X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/711df835d34672eef54d922844b69fb0cab0a1fc..ac6482e0eb085476bca3b81aaed8ed75ab896923:/src/msw/mdi.cpp diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index a9c6967d63..25cf16bbce 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -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; }