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


CTabCtrl::SetItem

Sets some or all of a tab's attributes.

BOOL SetItem(
  int nItem,
  TCITEM* pTabCtrlItem 
);

Параметры

  • nItem
    Zero-based index of the item.

  • pTabCtrlItem
    Pointer to a TCITEM structure that contains the new item attributes. The mask member specifies which attributes to set. If the mask member specifies the TCIF_TEXT value, the pszText member is the address of a null-terminated string and the cchTextMax member is ignored.

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

Nonzero if successful; otherwise 0.

Пример

See the example for GetItem.

Требования

Header: afxcmn.h

См. также

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

CTabCtrl Class

CTabCtrl Members

Hierarchy Chart

CTabCtrl::InsertItem

CTabCtrl::GetItem