]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
Simplified event based Drag API for wxDataViewCtrl
[wxWidgets.git] / src / msw / treectrl.cpp
index 7aa4079cf659ceb0082b46044e91e83311e5ec3a..d358be2f328155f21f264b872c8c273e5c7f47da 100644 (file)
@@ -1213,6 +1213,12 @@ bool wxTreeCtrl::ItemHasChildren(const wxTreeItemId& item) const
 {
     wxCHECK_MSG( item.IsOk(), false, wxT("invalid tree item") );
 
+    if ( IS_VIRTUAL_ROOT(item) )
+    {
+        wxTreeItemIdValue cookie;
+        return GetFirstChild(item, cookie).IsOk();
+    }
+
     wxTreeViewItem tvItem(item, TVIF_CHILDREN);
     DoGetItem(&tvItem);