]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't clear the HWND until after the UnsubclassWin so the old WndProc
authorRobin Dunn <robin@alldunn.com>
Mon, 10 Mar 2003 23:28:40 +0000 (23:28 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 10 Mar 2003 23:28:40 +0000 (23:28 +0000)
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

index 270dd47eab359f8669123dac6226b5bc32235005..8bc9ae2f26adaad9f392f2f6ec3f03c11ceeba1f 100644 (file)
@@ -395,8 +395,8 @@ wxListCtrl::~wxListCtrl()
 
     if ( m_textCtrl )
     {
 
     if ( m_textCtrl )
     {
-        m_textCtrl->SetHWND(0);
         m_textCtrl->UnsubclassWin();
         m_textCtrl->UnsubclassWin();
+        m_textCtrl->SetHWND(0);
         delete m_textCtrl;
         m_textCtrl = NULL;
     }
         delete m_textCtrl;
         m_textCtrl = NULL;
     }