]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for crash when pressing TAB in the tree text control
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jun 2001 15:57:51 +0000 (15:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jun 2001 15:57:51 +0000 (15:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/treectrl.cpp

index ddae7272b4e61137d4861ea76ea87af130fb1417..1754ffbff3904b6b0928c16c62baa1bb54a032d8 100644 (file)
@@ -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);