SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Sets the tab attributes for the specified tab.
C
BOOL SftTabs_SetTabInfo(HWND hwndCtl, int iTab, LPCSFTTABS_TAB lpTab);
C++
BOOL CSftTabs::SetTabInfo(int iTab, LPCSFTTABS_TAB lpTab);
hwndCtl
The window handle of the tab control.
iTab
The zero-based index of the tab for which attributes are to be defined.
lpTab
A pointer to a SFTTABS_TAB structure. This structure will be used to define the tab attributes.
The return value is TRUE if the function was successful, otherwise FALSE is returned.
The SetTabInfo function sets the tab attributes for the specified tab.
If the SFTTABS_TAB structure defines invalid tab attributes, the current tab settings remain unchanged and the function returns FALSE.
The function SftTabs_SetTabInfoEx and the LPSFTTABS_TAB_EX lpTabEx parameter of the SetTabInfo function are no longer available (see "Upgrading from Version 4.0").
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