-class wxDirCtrl: public wxTreeCtrl
-{
- DECLARE_DYNAMIC_CLASS(wxDirCtrl)
-
- public:
- bool m_showHidden;
- wxTreeItemId m_rootId;
-
- wxDirCtrl(void);
- wxDirCtrl(wxWindow *parent, const wxWindowID id = -1,
- const wxString &dir = "/",
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- const long style = wxTR_HAS_BUTTONS,
- const wxString& name = "wxTreeCtrl" );
- void OnExpandItem( const wxTreeEvent &event );
- void OnCollapseItem( const wxTreeEvent &event );
- void ShowHidden( const bool yesno );
- DECLARE_EVENT_TABLE()
- protected:
- void CreateItems(const wxTreeItemId &parent);
- void SetupSections(void);
- wxArrayString m_paths, m_names;
-};