CTab.InsertItemmethod
Inserts a new tab in a tab control.
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
| Name | Description | |
|---|---|---|
hTab | Handle to the tab control. | |
iItem | Zero-based index of the new tab. | |
pItem | Pointer to a TCITEMW structure that specifies the attributes of the tab. The dwState and dwStateMask members of this structure are ignored by this message. | |
item | A 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