From f3076f9fae6bef7c2f6ab0142bd2a8d184b4d6a3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 10 Mar 2003 23:28:40 +0000 Subject: [PATCH] Don't clear the HWND until after the UnsubclassWin so the old WndProc will be restored. Otherwise we get messages after the wxTextCtrl has been destroyed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 270dd47eab..8bc9ae2f26 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -395,8 +395,8 @@ wxListCtrl::~wxListCtrl() if ( m_textCtrl ) { - m_textCtrl->SetHWND(0); m_textCtrl->UnsubclassWin(); + m_textCtrl->SetHWND(0); delete m_textCtrl; m_textCtrl = NULL; }