Expand Minimize
This topic has not yet been rated - Rate this topic

CMFCBaseTabCtrl::GetFirstVisibleTab

Retrieves a pointer to the first visible tab.

virtual CWnd* GetFirstVisibleTab(
   int& iTabNum
);
virtual CWnd* GetFirstVisibleTab(
   int iStartFrom,
   int& iTabNum
);
[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.

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

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.

Header: afxbasetabctrl.h

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.