Retrieves the count of visible tabs.
int SftTabs_GetVisibleCount(HWND hwndCtl);
int CSftTabs::GetVisibleCount() const;
The window handle of the tab control.
The return value is the count of visible tabs. The return value is -1 if an error occurred.
The GetVisibleCount function retrieves the count of visible tabs.
A hidden tab is never displayed and can be defined using the SFTTABS_TAB structure, fHidden member. Its tab page is completely hidden also and the user cannot make the tab visible. Only the application can make a hidden tab visible. This is not equivalent to a tab that is currently not visible because the tab may have scrolled off the edge of the control.
Hidden tabs are best used in situations where certain groups of users should not have access to all tabs of a tab control, without being aware that additional tabs may exist.
This example retrieves the number of visible tabs:
total = SftTabs_GetVisibleCount(hwndTab);
total = m_Tab.GetVisibleCount();