Partager via


CWinApp::LoadStandardIcon

Loads the Windows predefined icon resource that lpszIconName specifies.

HICON LoadStandardIcon(
   LPCTSTR lpszIconName 
) const;

Parameters

  • lpszIconName
    A manifest constant identifier that specifies a predefined Windows icon. These identifiers are defined in WINDOWS.H. For a list of the possible predefined values and their descriptions, see the lpIconName parameter in LoadIcon in the Windows SDK.

Return Value

A handle to an icon if successful; otherwise NULL.

Remarks

Use the LoadStandardIcon or LoadOEMIcon member function to access the predefined Windows icons.

Requirements

Header: afxwin.h

See Also

Concepts

CWinApp Class

CWinApp Members

Hierarchy Chart

CWinApp::LoadOEMIcon

CWinApp::LoadIcon

LoadIcon