git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39101
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
extern const wxChar *wxMDIFrameClassName; // from app.cpp
extern const wxChar *wxMDIChildFrameClassName;
extern const wxChar *wxMDIChildFrameClassNameNoRedraw;
extern const wxChar *wxMDIFrameClassName; // from app.cpp
extern const wxChar *wxMDIChildFrameClassName;
extern const wxChar *wxMDIChildFrameClassNameNoRedraw;
-extern void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win);
extern void wxRemoveHandleAssociation(wxWindow *win);
extern void wxRemoveHandleAssociation(wxWindow *win);
-static HWND invalidHandle = 0;
-
// ---------------------------------------------------------------------------
// constants
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// constants
// ---------------------------------------------------------------------------
void wxMDIChildFrame::MSWDestroyWindow()
{
void wxMDIChildFrame::MSWDestroyWindow()
{
- invalidHandle = GetHwnd();
-
wxMDIParentFrame *parent = (wxMDIParentFrame *)GetParent();
// Must make sure this handle is invalidated (set to NULL) since all sorts
wxMDIParentFrame *parent = (wxMDIParentFrame *)GetParent();
// Must make sure this handle is invalidated (set to NULL) since all sorts
if (parent->GetActiveChild() == (wxMDIChildFrame*) NULL)
ResetWindowStyle((void*) NULL);
if (parent->GetActiveChild() == (wxMDIChildFrame*) NULL)
ResetWindowStyle((void*) NULL);
if (m_hMenu)
{
::DestroyMenu((HMENU) m_hMenu);
if (m_hMenu)
{
::DestroyMenu((HMENU) m_hMenu);
// with many items is just too slow)
NM_TREEVIEW *tv = (NM_TREEVIEW *)lParam;
// with many items is just too slow)
NM_TREEVIEW *tv = (NM_TREEVIEW *)lParam;
- wxTreeItemId item = event.m_item;
-
wxTreeItemParam *param =
(wxTreeItemParam *)tv->itemOld.lParam;
delete param;
wxTreeItemParam *param =
(wxTreeItemParam *)tv->itemOld.lParam;
delete param;