共用方式為


CMFCBaseTabCtrl::AddIcon

Adds an icon to the list of icons in the protected CMapm_mapAddedIcons member.

void AddIcon(
   HICON hIcon,
   int iIcon
);

Parameters

  • [in] hIcon
    A handle to the icon to be added.

  • [in] iIcon
    Zero-based index of the icon in the protected CImageListm_Images member.

Requirements

Header: afxbasetabctrl.h

See Also

Reference

CMFCBaseTabCtrl Class

Hierarchy Chart