Call this member function to load the icon resource named by lpszResourceName or specified by nIDResource from the executable file.
HICON LoadIcon( LPCTSTR lpszResourceName ) const;
HICON LoadIcon( UINT nIDResource ) const;
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
Windows CE doesn't 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 Overview, CWinApp Member Functions, Application Architecture Classes, CWinApp::LoadStandardIcon, CWinApp::LoadOEMIcon