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