#if wxUSE_MIMETYPE
-#ifndef WX_PRECOMP
- #include "wx/module.h"
-#endif
-// this one is needed for MSVC5
-#include "wx/module.h"
-
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif //WX_PRECOMP
+#include "wx/module.h"
#include "wx/log.h"
#include "wx/file.h"
#include "wx/iconloc.h"
return m_impl->GetIcon(iconLoc);
}
+bool
+wxFileType::GetIcon(wxIconLocation *iconloc,
+ const MessageParameters& params) const
+{
+ if ( !GetIcon(iconloc) )
+ {
+ return false;
+ }
+
+ // we may have "%s" in the icon location string, at least under Windows, so
+ // expand this
+ if ( iconloc )
+ {
+ iconloc->SetFileName(ExpandCommand(iconloc->GetFileName(), params));
+ }
+
+ return true;
+}
+
bool wxFileType::GetDescription(wxString *desc) const
{
wxCHECK_MSG( desc, FALSE, _T("invalid parameter in GetDescription") );