X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/574c939ef1c1b835a8bc65c0fe724548fa04ec49..2e0ce62d46cde23d7573e6bab863fffc6f413da4:/src/generic/dirctrlg.cpp diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index c56008620e..a9a8a03c6b 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -505,7 +505,12 @@ bool wxGenericDirCtrl::Create(wxWindow *parent, 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; @@ -579,7 +584,10 @@ void wxGenericDirCtrl::ShowHidden( bool show ) { 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)