HeaderPane
Main
Hide

SftTabs/DLL 7.0 Documentation

Share Link
Print

GetTabInfo

Retrieves tab attributes.

C

BOOL SftTabs_GetTabInfo(HWND hwndCtl, int iTab, LPSFTTABS_TAB lpTab);

C++

BOOL CSftTabs::GetTabInfo(int iTab, LPSFTTABS_TAB lpTab) const;

Parameters

hwndCtl

The window handle of the tab control.

iTab

The zero-based index of the tab whose attributes are to be retrieved.

lpTab

A pointer to a SFTTABS_TAB structure. This structure will be updated with the specified tab's attributes.

Returns

The return value is TRUE if the function was successful, otherwise FALSE is returned.

Comments

The GetTabInfo function retrieves tab attributes.

Some of the structure values returned can be modified and updated using SetTabInfo. See SFTTABS_TAB for more information.

Example

This example retrieves the tab attributes for the third tab and modifies the background color:

C

SFTTABS_TAB Tab;
SftTabs_GetTabInfo(hwndTab, 2, &Tab); 
Tab.colorBg = RGB(255, 0, 0); 
SftTabs_SetTabInfo(hwndTab, 2, &Tab);

C++

SFTTABS_TAB Tab;
m_Tab.GetTabInfo(2, &Tab); 
Tab.colorBg = RGB(255, 0, 0); 
m_Tab.SetTabInfo(2, &Tab);

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


Last Updated 04/26/2026 - (email)
© 2026 Softel vdm, Inc.