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
Returns the tab control's color attributes.
C
void SftTabs_GetCtlColors(HWND hwndCtl, LPSFTTABS_COLORS lpColors);
C++
void CSftTabs::GetCtlColors(LPSFTTABS_COLORS lpColors) const;
hwndCtl
The window handle of the tab control.
lpColors
A pointer to a SFTTABS_COLORS structure containing the color definitions. GetCtlColors uses this structure to return the current color settings.
The GetCtlColors function returns the tab control's color attributes.
Using GetCtlColors and SetCtlColors is the preferred method to change color attributes. Although a tab control generates WM_CTLCOLORSTATIC messages, the WM_CTLCOLORSTATIC message handling is provided for compatibility with SftTabs 2.0 only.
When using Windows themes, the colors are determined by the defined theme and defined colors are ignored.
This example changes the tab control's foreground and background colors:
C
SFTTABS_COLORS Colors; SftTabs_GetCtlColors(hwndTab, &Colors); /* Get current color settings */ Colors.colorBg = COLOR_WINDOW | 0x80000000L; /* Background color */ Colors.colorFg = RGB(0,0,128); /* Foreground color */ SftTabs_SetCtlColors(hwndTab, &Colors); /* Set new colors */
C++
SFTTABS_COLORS Colors; m_Tabs.GetCtlColors(&Colors); /* Get current color settings */ Colors.colorBg = COLOR_WINDOW | 0x80000000L; /* Background color */ Colors.colorFg = RGB(0,0,128); /* Foreground color */ m_Tabs.SetCtlColors(&Colors); /* Set new colors */
See Also C/C++ API | C++ Classes | Notifications