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


CStatusBarCtrl::GetIcon

Retrieves the icon for a part (also known as a pane) in the current status bar control.

HICON GetIcon(
            int iPart
) const;

Параметры

Parameter

Description

[in] iPart

The zero-based index of the part that contains the icon to be retrieved. If this parameter is -1, the status bar is assumed to be a simple mode status bar.

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

The handle to the icon if the method successful; otherwise, NULL.

Заметки

This method sends the SB_GETICON message, which is described in the Windows SDK.

A status bar control consists of a row of text output panes, which are also known as parts. For more information about the status bar, see Status Bar Implementation in MFC and Setting the Mode of a CStatusBarCtrl Object.

Требования

Header: afxcmn.h

См. также

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

CStatusBarCtrl Class

CStatusBarCtrl Members

Hierarchy Chart

Using CStatusBarCtrl

SB_GETICON

CStatusBarCtrl::SetParts