+#if WXWIN_COMPATIBILITY_2_4
+
+wxTreeItemId wxTreeCtrl::GetFirstChild(const wxTreeItemId& item,
+ long& cookie) const
+{
+ cookie = (long)TreeView_GetChild(GetHwnd(), HITEM(item));
+
+ return wxTreeItemId((void *)cookie);
+}
+
+wxTreeItemId wxTreeCtrl::GetNextChild(const wxTreeItemId& WXUNUSED(item),
+ long& cookie) const
+{
+ wxTreeItemId item(TreeView_GetNextSibling
+ (
+ GetHwnd(),
+ HITEM(wxTreeItemId((void *)cookie)
+ )));
+ cookie = (long)item.m_pItem;
+
+ return item;
+}
+
+#endif // WXWIN_COMPATIBILITY_2_4
+