CWinApp::LoadStandardIcon

HICONLoadStandardIcon(LPCTSTRlpszIconName**)const;**

Return Value

A handle to an icon if successful; otherwise NULL.

Parameters

lpszIconName

A manifest constant identifier that specifies a predefined Windows icon. These identifiers are defined in WINDOWS.H. The following list shows the possible predefined values and meanings for lpszIconName:

  • IDI_APPLICATION   Default application icon

  • IDI_HAND   Hand-shaped icon used in serious warning messages

  • IDI_QUESTION   Question-mark shape used in prompting messages

  • IDI_EXCLAMATION   Exclamation point shape used in warning messages

  • IDI_ASTERISK   Asterisk shape used in informative messages

Remarks

Loads the Windows predefined icon resource that lpszIconName specifies.

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

CWinApp OverviewClass MembersHierarchy Chart

See Also   CWinApp::LoadOEMIcon, CWinApp::LoadIcon,