共用方式為


CMFCBaseTabCtrl::SetTabHicon

Sets the icon for a tab label.

virtual BOOL SetTabHicon(
   int iTab,
   HICON hIcon
);

Parameters

  • [in] iTab
    The zero-based index of a tab. This method changes the icon for this tab.

  • [in] hIcon
    A handle to an icon.

Return Value

TRUE if successful; otherwise FALSE.

Requirements

Header: afxbasetabctrl.h

See Also

Reference

CMFCBaseTabCtrl Class

Hierarchy Chart