ot;.HTML") return ICI_HTMLDOC;
else if(ext == ".DOC") return ICI_WORDDOC;
else if(ext == ".MPG" || ext == ".MPEG" || ext == ".AVI")
return ICI_VIDEOFILE;
else if(ext == ".HLP") return ICI_HELPFILE;
else if(ext == ".BMP") return ICI_IMAGEFILE;
else if(ext == ".ICO") return ICI_IMAGEFILE;
else if(ext == ".DBF" || ext == ".DBT" || ext == ".MEM")
return ICI_FOXPROFILE;
else if(ext == ".DLL" || ext == ".SYS" || ext == ".OCX" ||ext == ".VXD" || ext == ".INI" ||ext == ".DRV")
return ICI_DRIVERSFILE;
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 ICI_IMAGEFILE;
else if(ext == ".TSK" || ext == ".CPX" || ext == ".ROM" ||ext == ".CFG" || ext == ".STF" || ext == ".LST" ||
ext == ".INF")
return ICI_WINDOWSFILE;
else if(ext == ".CUR" || ext == ".ANI") return ICI_CURSORFILE;
else if(ext == ".FON") return ICI_FONTFILE;
else if(ext == ".BAK") return ICI_TRASHFILE;
else if(ext == ".JAVA") return ICI_JAVASOURCE;
else if(ext == ".CLASS") return ICI_JAVACLASSES;
else if(ext == ".BEAN") return ICI_JAVABEAN;
else if(ext == ".REG") return ICI_REGISTRYFILE;
else if(ext == ".MDB") return ICI_ACCESSFILE;
else if(ext == ".XLS") return ICI_EXCELFILE;
else if(ext == ".CHM") return ICI_HTMLHELP;
else
return ICI_GENERALFILE;
}
void CDriveExplorerView::SetupImages(CImageList* mImageList, int iSize)
{
CWinApp* pApp = AfxGetApp();
// ASSERT(m_pImageList != NULL); // serious allocation failure checking
mImageList->Create(iSize, iSize, ILC_COLOR8 | ILC_MASK, 9, 9);
mImageList->Add(pApp->LoadIcon(ICO_ACCESSFILE));
mImageList->Add(pApp->LoadIcon(ICO_C_SOURCE));
mImageList->Add(pApp->LoadIcon(ICO_CDDRV));
mImageList->Add(pApp->LoadIcon(ICO_CLSDFLD));
mImageList->Add(pApp->LoadIcon(ICO_CURSORFILE));
mImageList->Add(pApp->LoadIcon(ICO_DRIVE));
mImageList->Add(pApp->LoadIcon(ICO_DRIVERSFILE));
mImageList->Add(pApp->LoadIcon(ICO_ERROR));
mImageList->Add(pApp->LoadIcon(ICO_EXCELFILE));
mImageList->Add(pApp->LoadIcon(ICO_EXCLAMATION));
mImageList->Add(pApp->LoadIcon(ICO_EXEFILE));
mImageList->Add(pApp->LoadIcon(ICO_FLOPPYDRV));
mImageList->Add(pApp->LoadI