Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWinApp::LoadStandardIcon
CWinApp                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  HICON LoadStandardIcon( LPSTR lpIconName );
 
  Parameter    Description
 
  <lpIconName> 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 for
               <lpIconName>:
 
               Value             Meaning
 
               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 specified by <lpIconName>.
 
  Use LoadStandardIcon or the LoadOEMIcon member function to access the
  predefined icons used by Windows.
 
  Return Value
 
  A handle to an icon resource (a bitmap defining the icon). If
  unsuccessful, returns NULL.
 
  See Also
 
  CWinApp::LoadOEMIcon, CWinApp::LoadIcon, ::LoadIcon
 
 
                                     -♦-