if(sfi.iIcon<0) sfi.iIcon=m_iO82Image;
//
return sfi.iIcon;
}
// for tree
void Cxxxx::GetNormalAndSelectedIcons(CString path,LPTV_ITEM lptvitem)
{
//Note that we don't check the return value here because if GetIcon()
//fails, then we're in big trouble...
The ExtractAssociatedIcon function first looks for the indexed icon in the file specified by lpIconPath. If the function cannot obtain the icon handle from that file, and the file has an associated executable file, it looks in that executable file for an icon. Associations with executable files are based on file name extensions, are stored in the per-user part of the registry, and can be defined using File Manager's Associate command.