".BMP") return "Bitmap File";
else if(ext == ".ICO") return "Icon File";
else if(ext == ".DBF" || ext == ".DBT" || ext == ".MEM")
return "FOXPRO File";
else if(ext == ".DLL" || ext == ".SYS" || ext == ".OCX" ||ext == ".VXD" || ext == ".INI" ||ext == ".DRV")
return "DRIVERS File";
else if(ext == ".JPG" || ext == ".GIF" || ext == ".JPEG" || ext == ".AIS" || ext == ".EMF" || ext == ".IFF" ||
ext == ".KDC" || ext == ".PCD" || ext == ".PCX" ||ext == ".PIC" || ext == ".PIX" || ext == ".PNG" ||
ext == ".PSD" || ext == ".SGI" || ext == ".TIF" ||ext == ".TIFF" || ext == ".WMF")
return "Picture File";
else if(ext == ".TSK" || ext == ".CPX" || ext == ".ROM" ||ext == ".CFG" || ext == ".STF" || ext == ".LST" ||
ext == ".INF")
return "WINDOWS File";
else if(ext == ".CUR" || ext == ".ANI") return "CURSOR File";
else if(ext == ".FON") return "FONT File";
else if(ext == ".BAK") return "Backup File";
else if(ext == ".JAVA") return "JAVA Source";
else if(ext == ".CLASS") return "JAVA Class";
else if(ext == ".BEAN") return "JAVA Bean";
else if(ext == ".REG") return "REGISTRY File";
else if(ext == ".MDB") return "ACCESS Database";
else if(ext == ".XLS") return "EXCEL File";
else if(ext == ".CHM") return "HTML Help";
else
{
ext = ext.Mid( (ext.Find(''''.'''',0) != -1 ? 1 : 0));
return ext + " File";
}
return cResult;
}
UINT CDriveExplorerView::GetListViewIcon(CString s)
{
int nFoundAt = s.Find("." , 1);
s.MakeUpper();
if(nFoundAt == 0)
return ICI_GENERALFILE;
CString ext = s.Mid(nFoundAt);
// Set some standard icon types
if(ext == ".PDF") return ICI_PDFFILE;
else if(s == "SETUP.EXE") return ICI_SETUPFILE;
else if(s == "ISUNINST.EXE") return ICI_UNINSTALLFILE;
else if(ext == ".TXT" || ext == ".LOG") return ICI_TEXTFILE;
else if(ext == ".ZIP" || ext == ".ARJ" || ext == ".TGZ" || ext == ".RAR" || ext == ".TAR" || ext == ".LZH" ||
ext == ".LZA" || ext == ".CAB")
return ICI_ZIPFILE;
else if(ext == ".EXE" || ext == ".COM" || ext == ".BAT")
return ICI_EXEFILE;
else if(ext == ".AU" || ext == ".WAV" || ext == ".MP3")
return ICI_SOUNDFILE;
else if(ext == ".HTM" || ext == &qu