CTab.InsertTabmethod
Inserts a new tab in a tab control.
Syntax
FUNCTION InsertTab (BYVAL hTab AS HWND, BYVAL nTabIndex AS DWORD, BYVAL iImage AS LONG, BYVAL pwszText AS WSTRING PTR, BYVAL lParam AS ..LPARAM = 0) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hTab | Handle to the tab control. | |
nTabInxex | Zero-based index of the tab. | |
iImage | Zero-based index of the image in the image list or -1 for no image. | |
pwszText | Pointer to a null-terminated string that contains the tab text when item information is being set. | |
lParam | Application-defined data associated with the tab control item. |
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:322
- Documented in Windows/WIndows Controls/CTab Class.md
- Topic: CTab Class