Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
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
 
 
                                     -♦-