1.
Hicon Hicon = :: Extracticon (AfxGetInstanceHandle (), _ T ("Notepad.exe"), 0)
IF (Hicon && HiCon! = (HICON) -1)
{
PDC-> Drawicon (10, 10, Hicon);
}
DESTROYICI (HICON);
2.
SHFILEINFO INFO;
CString strfilename = "c: //winnt//notepad.exe";
SHGETFILEINFO (StrfileName, & Info, SizeOf (& Info), SHGFI_DISPLAYNAME | SHGFI_ICON);
INT i = m_imagelist.add (info.chicon);
M_List.InsertItem (0, Info.szdisPlayName, i);