CWinApp::LoadIcon

This method loads the icon resource named by lpszResourceName or specified by nIDResource from the executable file.

At a Glance

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

Syntax

HICON LoadIcon( LPCTSTR lpszResourceName ) const;

HICON LoadIcon( UINT nIDResource ) const;

Remarks

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.

See Also

CWinApp::LoadStandardIcon, CWinApp::LoadOEMIcon