Share via


CMFCBaseTabCtrl::GetFirstVisibleTab

Retrieves a pointer to the first visible tab.

virtual CWnd* GetFirstVisibleTab(
   int& iTabNum
);
virtual CWnd* GetFirstVisibleTab(
   int iStartFrom,
   int& iTabNum
);

Parameters

  • [out] iTabNum
    A reference to an integer. This method writes the zero-based index of the first visible tab to this parameter.

  • [in] iStartFrom
    The zero-based index of the first tab to check.

Return Value

A pointer to the first visible tab if successful; otherwise NULL.

Remarks

If this method fails, it writes the value -1 to iStartFrom.

If iStartFrom is larger than or equal to the number of tabs in the tab control, GetFirstVisibleTab automatically fails.

Requirements

Header: afxbasetabctrl.h

See Also

Reference

CMFCBaseTabCtrl Class

Hierarchy Chart