Help Center

CTab.InsertItemmethod

Inserts a new tab in a tab control.

WindowsmethodCTab.incdocumented

Syntax

FUNCTION InsertItem (BYVAL hTab AS HWND, BYVAL iItem AS DWORD, BYVAL pItem AS TCITEMW PTR) AS LONG
FUNCTION InsertItem (BYVAL hTab AS HWND, BYVAL iItem AS DWORD, BYREF item AS TCITEMW) AS LONG

Parameters

NameDescription
hTabHandle to the tab control.
iItemZero-based index of the new tab.
pItemPointer to a TCITEMW structure that specifies the attributes of the tab. The dwState and dwStateMask members of this structure are ignored by this message.
itemA TCITEMW structure that specifies the attributes of the tab. The dwState and dwStateMask members of this structure are ignored by this message.

Return value

Returns the index of the new tab if successful, or -1 otherwise.

Description

Inserts a new tab in a tab control.

Reference

  • Include file CTab.inc
  • Defined in AfxNova/CTab.inc:303
  • Documented in Windows/WIndows Controls/CTab Class.md
  • Topic: CTab Class