Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the icon for a pane in a status bar.
BOOL SetIcon( 
   int nPane, 
   HICON hIcon  
);
Parameters
- nPane 
 The zero-based index of the pane that will receive the icon. If this parameter is -1, the status bar is assumed to be a simple status bar.
- hIcon 
 Handle to the icon to be set. If this value is NULL, the icon is removed from the part.
Return Value
Nonzero if successful; otherwise zero.
Remarks
This member function implements the behavior of the Win32 message SB_SETICON, as described in the Windows SDK.
Example
See the example for CStatusBarCtrl::SetBkColor.
Requirements
Header: afxcmn.h