Поделиться через


CStatusBarCtrl::SetIcon

Sets the icon for a pane in a status bar.

BOOL SetIcon(
   int nPane,
   HICON hIcon 
);

Параметры

  • 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.

Возвращаемое значение

Nonzero if successful; otherwise zero.

Заметки

This member function implements the behavior of the Win32 message SB_SETICON, as described in the Windows SDK.

Пример

See the example for CStatusBarCtrl::SetBkColor.

Требования

Header: afxcmn.h

См. также

Основные понятия

CStatusBar Class

CStatusBar Members

Hierarchy Chart