From: Vadim Zeitlin Date: Sat, 9 Jun 2001 15:57:51 +0000 (+0000) Subject: fix for crash when pressing TAB in the tree text control X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c8f144761c1e637f27a838f22da5c3a9f6c27fd4 fix for crash when pressing TAB in the tree text control git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index ddae7272b4..1754ffbff3 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -1639,6 +1639,7 @@ wxTextCtrl* wxTreeCtrl::EditLabel(const wxTreeItemId& item, } m_textCtrl = (wxTextCtrl *)textControlClass->CreateObject(); + m_textCtrl->SetParent(this); m_textCtrl->SetHWND((WXHWND)hWnd); m_textCtrl->SubclassWin((WXHWND)hWnd);