IsItemExpanded() function added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -280,6 +280,14 @@ public:
|
|||||||
bool CollapseItem(long item) { return ExpandItem(item, wxTREE_EXPAND_COLLAPSE); }
|
bool CollapseItem(long item) { return ExpandItem(item, wxTREE_EXPAND_COLLAPSE); }
|
||||||
bool ToggleItem(long item) { return ExpandItem(item, wxTREE_EXPAND_TOGGLE); }
|
bool ToggleItem(long item) { return ExpandItem(item, wxTREE_EXPAND_TOGGLE); }
|
||||||
bool ExpandItem( long item, int action );
|
bool ExpandItem( long item, int action );
|
||||||
|
|
||||||
|
// is the item expanded now?
|
||||||
|
bool IsItemExpanded(long item)
|
||||||
|
{
|
||||||
|
wxGenericTreeItem *pItem = FindItem(item);
|
||||||
|
return pItem && (pItem->GetState() & wxTREE_STATE_EXPANDED);
|
||||||
|
}
|
||||||
|
|
||||||
bool GetItem( wxTreeItem &info ) const;
|
bool GetItem( wxTreeItem &info ) const;
|
||||||
long GetItemData( long item ) const;
|
long GetItemData( long item ) const;
|
||||||
wxString GetItemText( long item ) const;
|
wxString GetItemText( long item ) const;
|
||||||
|
Reference in New Issue
Block a user