This documentation is archived and is not being maintained.


Retrieves the index of a tab based on a tab ID.

virtual int GetTabByID(
   int id
) const;

[in] id

A tab ID.

The zero-based index of a tab if it is found; -1 if the tab ID is not found.

The tab IDs are assigned automatically when tabs are added to a tab control.

Header: afxbasetabctrl.h