CWinApp::LoadIcon

Call this member function to load the icon resource named by lpszResourceName or specified by nIDResource from the executable file.

Syntax

HICON LoadIcon( LPCTSTR lpszResourceName ) const;

HICON LoadIcon( UINT nIDResource ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

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.

See Also

CWinApp Overview, CWinApp Member Functions, Application Architecture Classes, CWinApp::LoadStandardIcon, CWinApp::LoadOEMIcon