#include "wx/cmndata.h"
#include "wx/choice.h"
#include "wx/textctrl.h"
+ #include "wx/layout.h"
+ #include "wx/sizer.h"
+ #include "wx/textdlg.h"
+ #include "wx/gdicmn.h"
+ #include "wx/image.h"
+ #include "wx/module.h"
#endif
-#include "wx/module.h"
-#include "wx/layout.h"
-#include "wx/textdlg.h"
#include "wx/filefn.h"
-#include "wx/gdicmn.h"
#include "wx/imaglist.h"
-#include "wx/sizer.h"
#include "wx/tokenzr.h"
#include "wx/dir.h"
#include "wx/artprov.h"
#include "wx/mimetype.h"
-#include "wx/image.h"
#if wxUSE_STATLINE
#include "wx/statline.h"
#endif
#if defined(__OS2__) || defined(__DOS__)
- #ifdef __OS2__
- #define INCL_BASE
- #include <os2.h>
- #ifndef __EMX__
- #include <direct.h>
+ #ifdef __OS2__
+ #define INCL_BASE
+ #include <os2.h>
+ #ifndef __EMX__
+ #include <direct.h>
+ #endif
+ #include <stdlib.h>
+ #include <ctype.h>
#endif
- #include <stdlib.h>
- #include <ctype.h>
- #endif
- extern bool wxIsDriveAvailable(const wxString& dirName);
+ extern bool wxIsDriveAvailable(const wxString& dirName);
#endif // __OS2__
#if defined(__WXMAC__)
path.Printf(wxT("%c:\\"), driveBuffer[i]);
name.Printf(wxT("%c:"), driveBuffer[i]);
-#if !defined(__WXWINCE__)
- wxChar pname[52]; // FIXME: why 52 and not MAX_PATH or whatever?
- if ( GetVolumeInformation(path, pname, WXSIZEOF(pname),
- NULL, NULL, NULL, NULL, 0) )
- {
- name << _T(' ') << pname;
- }
-#endif // __WXWINCE__
+ // Do not use GetVolumeInformation to further decorate the
+ // name, since it can cause severe delays on network drives.
int imageId;
int driveType = ::GetDriveType(path);
return false;
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
+ SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
Init();
return;
if ((event.GetLabel().empty()) ||
- (event.GetLabel() == _(".")) ||
- (event.GetLabel() == _("..")) ||
+ (event.GetLabel() == wxT(".")) ||
+ (event.GetLabel() == wxT("..")) ||
(event.GetLabel().Find(wxT('/')) != wxNOT_FOUND) ||
(event.GetLabel().Find(wxT('\\')) != wxNOT_FOUND) ||
(event.GetLabel().Find(wxT('|')) != wxNOT_FOUND))