void wxGenericDirCtrl::ShowHidden( bool show ) { if ( m_showHidden == show ) return; m_showHidden = show; wxString path = GetPath(); ReCreateTree(); SetPath(path); }
void wxGenericDirCtrl::ShowHidden( bool show ) { if ( m_showHidden == show ) return; m_showHidden = show; if ( HasFlag(wxDIRCTRL_MULTIPLE) ) { wxArrayString paths; GetPaths(paths); ReCreateTree(); for ( unsigned n = 0; n < paths.size(); n++ ) { ExpandPath(paths[n]); } } else { wxString path = GetPath(); ReCreateTree(); SetPath(path); } }