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
Retrieves the length of a tab's text.
C
int SftTabs_GetTabLabelLen(HWND hwndCtl, int iTab);
C++
int CSftTabs::GetTabLabelLen(int iTab) const;
hwndCtl
The window handle of the tab control.
iTab
The zero-based index of the tab for which the text length is to be retrieved.
The return value is the length of the tab's text, not including the terminating '\0' or -1 if an error occurred.
The GetTabLabelLen function retrieves the length of a tab's text.
When using UNICODE, the number returned is the number of wide characters, not the number of bytes.
This example retrieves the length of the tenth tab's text:
C
len = SftTabs_GetTabLabelLen (hwndTab, 9);
C++
len = m_Tab.GetTabLabelLen(9);
See Also C/C++ API | C++ Classes | Notifications