[ 835171 ] Show hidden files in wxGenericDirCtrl
(genericdirctrl is neat!) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -818,7 +818,7 @@ void wxGenericDirCtrl::ExpandDir(wxTreeItemId parentId)
|
||||
dirs.Add(eachFilename);
|
||||
}
|
||||
}
|
||||
while (d.GetNext(& eachFilename));
|
||||
while (d.GetNext(&eachFilename));
|
||||
}
|
||||
}
|
||||
dirs.Sort(wxDirCtrlStringCompareFunction);
|
||||
@@ -832,7 +832,9 @@ void wxGenericDirCtrl::ExpandDir(wxTreeItemId parentId)
|
||||
|
||||
if (d.IsOpened())
|
||||
{
|
||||
if (d.GetFirst(& eachFilename, m_currentFilterStr, wxDIR_FILES))
|
||||
int style = wxDIR_FILES;
|
||||
if (m_showHidden) style |= wxDIR_HIDDEN;
|
||||
if (d.GetFirst(& eachFilename, m_currentFilterStr, style))
|
||||
{
|
||||
do
|
||||
{
|
||||
|
Reference in New Issue
Block a user