]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 835171 ] Show hidden files in wxGenericDirCtrl
authorRyan Norton <wxprojects@comcast.net>
Sat, 20 Dec 2003 15:13:15 +0000 (15:13 +0000)
committerRyan Norton <wxprojects@comcast.net>
Sat, 20 Dec 2003 15:13:15 +0000 (15:13 +0000)
(genericdirctrl is neat!)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp

index 622be49ebea643f1206a1143b7d3e1d2e0e6e869..0193c7e016363d82788086fb215f09d0107161ec 100644 (file)
@@ -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
                 {