Init();
- long treeStyle = wxTR_HAS_BUTTONS | wxTR_EDIT_LABELS | wxTR_HIDE_ROOT;
+ long treeStyle = wxTR_HAS_BUTTONS ; // | wxTR_EDIT_LABELS ;
+
+#ifndef __WXMSW__
+ treeStyle |= wxTR_HIDE_ROOT;
+#endif
+
if ((style & wxDIRCTRL_3D_INTERNAL) == 0)
treeStyle |= wxNO_BORDER;
{
m_showHidden = show;
- // reparse FIXME
+ wxString path = GetPath();
+ m_treeCtrl->Collapse(m_treeCtrl->GetRootItem());
+ m_treeCtrl->Expand(m_treeCtrl->GetRootItem());
+ SetPath(path);
}
void wxGenericDirCtrl::AddSection(const wxString& path, const wxString& name, int imageId)