SECTabControlBase::GetTabInfo

BOOLSECTabControlBase::GetTabInfo(intnTab, LPCTSTR&lpszLabel, BOOL&bSelected, CObject*&pClient, HMENU&hMenu, void*&pExtra)

The label, client, and selection status, etc. of the tab with the given index are written to the corresponding parameters. Alternatively, you may prefer to retrieve the tab (using GetTab) and dereference only the attributes you need.

Defined in: tabctrlb.cpp

Return Value

Nonzero if a tab exists with the specified index; otherwise 0.

Parameters

nTab

Index of tab to retrieve info from.

lpszLabel

Contains the label shown on the specified tab after returning.

bSelected

If a tab with the specified index exists, its selection state is returned through bSelected.

pClient

If a tab with the specified index exists, a pointer to its associated client is returned through pClient (may be NULL).

hMenu

If a tab with the specified index exists, its associated menu is returned via hMenu (may be NULL).

pExtra

If a tab with the specified index exists, a pointer to user-defined data is returned in pExtra (may be NULL).

See Also

GetTab

SECTabControlBase