This method loads the icon resource named by lpszResourceName or specified by nIDResource from the executable file.
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
HICON LoadIcon( LPCTSTR lpszResourceName ) const;
HICON LoadIcon( UINT nIDResource ) const;
Windows CE does not support any of the predefined icons (IDI_*).
In Windows CE 1.0, the icon must be a two bit per pixel (.ic2) icon or a monochrome icon.
CWinApp::LoadStandardIcon, CWinApp::LoadOEMIcon