remove HWND association when DestroyWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,6 +68,7 @@ extern const wxChar *wxMDIChildFrameClassName;
|
|||||||
extern wxWindow *wxWndHook; // from window.cpp
|
extern wxWindow *wxWndHook; // from window.cpp
|
||||||
|
|
||||||
extern void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win);
|
extern void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win);
|
||||||
|
extern void wxRemoveHandleAssociation(wxWindow *win);
|
||||||
|
|
||||||
static HWND invalidHandle = 0;
|
static HWND invalidHandle = 0;
|
||||||
|
|
||||||
@@ -1042,6 +1043,7 @@ void wxMDIChildFrame::MSWDestroyWindow()
|
|||||||
::DestroyMenu((HMENU) m_hMenu);
|
::DestroyMenu((HMENU) m_hMenu);
|
||||||
m_hMenu = 0;
|
m_hMenu = 0;
|
||||||
}
|
}
|
||||||
|
wxRemoveHandleAssociation(this);
|
||||||
m_hWnd = 0;
|
m_hWnd = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user