Updates to MIME-types and wxFileDialog code for better

native looking image handling.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-02-15 00:35:16 +00:00
parent 6d7184953a
commit 1d529ef7ee
3 changed files with 148 additions and 35 deletions

View File

@@ -208,10 +208,13 @@ void wxFileData::ReadData()
// try to get a better icon
if (m_image == wxFileIconsTable::file)
{
if (IsExe())
if (m_fileName.Find(wxT('.'), TRUE) != wxNOT_FOUND)
{
m_image = wxTheFileIconsTable->GetIconID( m_fileName.AfterLast(wxT('.')));
} else if (IsExe())
{
m_image = wxFileIconsTable::executable;
else if (m_fileName.Find(wxT('.'), TRUE) != wxNOT_FOUND)
m_image = wxTheFileIconsTable->GetIconID(m_fileName.AfterLast(wxT('.')));
}
}
m_size = buff.st_size;