|
|
|
GetCurrentTab |
Retrieves the index of the currently active tab.
C
int SftTabs_GetCurrentTab(HWND hwndCtl);
C++
int CSftTabs::GetCurrentTab() const;
Parameters
hwndCtl
The window handle of the tab control.
Returns
The return value is the index of the currently active tab. -1 is returned if no tab is active or if an error occurred.
Comments
The GetCurrentTab function retrieves the index of the currently active tab.
The currently active tab can be set using SetCurrentTab. It is possible for all tabs to be inactive (based on SetAllowAllInactive) in which case there is no current tab.
Example
This example retrieves the index of the current tab:
C
int iTab = SftTabs_GetCurrentTab(hwndTab);
C++
int iTab = m_Tab.GetCurrentTab()
See Also C/C++ API | C++ Classes | Notifications