다음을 통해 공유


CMFCStatusBar::SetPaneIcon

Set the icon of the status bar pane.

void SetPaneIcon(
   int nIndex,
   HICON hIcon,
   BOOL bUpdate=TRUE 
);
void SetPaneIcon(
   int nIndex,
   HBITMAP hBmp,
   COLORREF clrTransparent=RGB(255,0,255),
   BOOL bUpdate=TRUE 
);

Parameters

  • [in] nIndex
    Specifies the index of the pane for which to set the image.

  • [in] hIcon
    Specifies a handle to the icon to be set as the pane image.

  • [in] bUpdate
    Specifies whether to update the pane content immediately.

  • [in] hBmp
    Specifies a handle to the bitmap to be set as the pane image.

  • [in] clrTransparent
    Specifies the transparent color of the bitmap that the hBmp indicates.

Remarks

You can pass either HICON or HBITMAP together with the transparent color to set the pane's image. If you do not want to display the image any longer, pass the NULL value as the image handle.

If there is any running animation that CMFCStatusBar::SetPaneAnimation has set, the animation will be stopped.

Requirements

Header: afxstatusbar.h

See Also

Reference

CMFCStatusBar Class

Hierarchy Chart