Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

GetVisibleCount

Retrieves the count of visible tabs.

C

int SftTabs_GetVisibleCount(HWND hwndCtl);

C++

int CSftTabs::GetVisibleCount() const;

Parameters

hwndCtl

The window handle of the tab control.

Returns

The return value is the count of visible tabs. The return value is -1 if an error occurred.

Comments

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.

Example

This example retrieves the number of visible tabs:

C

total = SftTabs_GetVisibleCount(hwndTab); 

C++

total = m_Tab.GetVisibleCount();

See Also C/C++ API | C++ Classes | Notifications


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.