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.
SetIcon
CStatic                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  HICON SetIcon( HICON hIcon );
 
  Parameter   Description
 
  <hIcon>     Identifies the icon to associate with an icon resource.
 
  Remarks
 
  Associates an icon with an icon resource. This is a CStatic object
  created with the SS_ICON style.
 
  Return Value
 
  The handle of the icon that was previously associated with the icon
  resource, or 0 if an error occurred.
 
  See Also
 
  STM_SETICON, ::LoadIcon, CStatic::GetIcon
 
 
                                     -♦-