Partager via


SB_SETICON (Windows CE 5.0)

Send Feedback

This message sets the icon for a part in a status bar. To send this message, call the SendMessage function as follows.

lResult = SendMessage(  (HWND) hWndControl,  (UINT) SB_SETICON,  (WPARAM) wParam,     // = (WPARAM) (INT) iPart;  (LPARAM) lParam      // = (LPARAM) (HICON) hIcon; );

Parameters

  • iPart
    Zero-based index of the part 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 Values

Returns nonzero if successful, or zero otherwise.

Remarks

The status bar will not destroy the icon. It is the calling application's responsibility to keep track of and destroy any icons.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Commctrl.h.

See Also

Status Bars Messages | SB_GETICON

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.