Help Center

CTab.GetCurSelmethod

Determines the currently selected tab in a tab control.

WindowsmethodCTab.incdocumented

Syntax

FUNCTION GetCurSel (BYVAL hTab AS HWND) AS LONG

Return value

Returns the index of the selected tab if successful, or -1 if no tab is selected.

Description

Determines the currently selected tab in a tab control.

Example

DIM curSel AS LONG = CTab.GetCurSel(hTab)

Reference

  • Include file CTab.inc
  • Defined in AfxNova/CTab.inc:152
  • Documented in Windows/WIndows Controls/CTab Class.md
  • Topic: CTab Class