Minor changes to keep my MSW source
authorRobert Roebling <robert@roebling.de>
Sun, 10 Oct 1999 15:04:47 +0000 (15:04 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 10 Oct 1999 15:04:47 +0000 (15:04 +0000)
    in synch...

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

include/wx/window.h
src/generic/dirdlgg.cpp

index cc2212738bcdd67cb63e71c2d639c7e4b462ba07..caf8db3444c82be6f0a1dc59eeb5fb093452f111 100644 (file)
@@ -28,6 +28,7 @@
 #include "wx/font.h"            // so we can't do without them
 #include "wx/colour.h"
 #include "wx/region.h"
+#include "wx/utils.h"
 
 #if wxUSE_VALIDATORS
     #include "wx/validate.h"    // defines wxDefaultValidator
index 706a6320c94d88836d85366b4024258c5ecb9064..5343555b80b96253b2fca0302d340f5100db00e0 100644 (file)
@@ -310,7 +310,11 @@ void wxDirCtrl::OnExpandItem(wxTreeEvent &event)
 
     m_paths.Clear();
     m_names.Clear();
+#ifdef __WXMSW__
+    search = data->m_path + "\\*.*";
+#else
     search = data->m_path + "/*";
+#endif
     for (path = wxFindFirstFile( search, wxDIR ); !path.IsNull();
        path=wxFindNextFile() )
     {