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 a tab's text.
C
int SftTabs_GetTabLabel(HWND hwndCtl, int iTab, LPTSTR lpsz); int SftTabs_GetTabLabel_A(HWND hwndCtl, int iTab, LPSTR lpsz); int SftTabs_GetTabLabel_W(HWND hwndCtl, int iTab, LPWSTR lpsz);
C++
int CSftTabs::GetTabLabel(int iTab, LPTSTR lpsz) const; void CSftTabs::GetTabLabel(int iTab, CString& string) const;
hwndCtl
The window handle of the tab control.
iTab
The zero-based index of the tab for which information is to be retrieved.
lpsz
A pointer to a buffer where the tab's text will be returned.
string
A reference to a CString object, where the text will be returned.
The return value is the number of characters returned in the buffer, not including the terminating '\0'. The buffer must be large enough to receive the complete text. GetTabLabelLen can be used to determine the buffer length needed. -1 is returned if an error occurred.
The GetTabLabel function retrieves a tab's text.
A tab's text can be changed using SetTabLabel.
This example retrieves the text of the second tab:
C
TCHAR szBuffer[80]; SftTabs_GetTabLabel(hwndTab, 1, szBuffer);
C++
CString str; m_Tab.GetTabLabel(1, str); TCHAR szBuffer[80]; m_Tab.GetTabLabel(1, szBuffer);
See Also C/C++ API | C++ Classes | Notifications