Help Center

CTab.InsertTabmethod

Inserts a new tab in a tab control.

WindowsmethodCTab.incdocumented

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

NameDescription
hTabHandle to the tab control.
nTabInxexZero-based index of the tab.
iImageZero-based index of the image in the image list or -1 for no image.
pwszTextPointer to a null-terminated string that contains the tab text when item information is being set.
lParamApplication-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