]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
Moved metafile helpers from utilsexc.cpp to utils.cpp -- seemed more appropriate!
[wxWidgets.git] / src / msw / treectrl.cpp
index f42d35f685a90edf358013f27d68d51d7ec06269..1754ffbff3904b6b0928c16c62baa1bb54a032d8 100644 (file)
@@ -54,7 +54,7 @@
     #include "wx/msw/gnuwin32/extra.h"
 #endif
 
-#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) || defined(__TWIN32__))
+#if defined(__WIN95__) && !((defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) && !defined(__CYGWIN10__))
     #include <commctrl.h>
 #endif
 
@@ -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);