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::LoadIcon
◄CWinApp►                                     ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  HICON LoadIcon( LPSTR lpIconName );
  HICON LoadIcon( UINT nIDIcon );
 
  Parameter    Description
 
  <lpIconName> Points to a null-terminated string that contains the name
               of the icon resource. You can also use a CString for this
               argument.
 
  <nIDIcon>    ID number of the resource.
 
  Remarks
 
  Loads the icon resource named by <lpIconName> or specified by <nIDIcon>
  from the executable file. LoadIcon loads the icon only if it has not
  been previously loaded.
 
  You can use the ◄LoadStandardIcon► or ◄LoadOEMIcon► member functions to
  access the predefined Windows icons.
 
  Return Value
 
  A handle to an icon resource. If unsuccessful, returns NULL.
 
  See Also
 
  ◄CWinApp::LoadStandardIcon►, ◄CWinApp::LoadOEMIcon►, ◄::LoadIcon►
 
 
                                     -♦-