Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

GetTabLabelLen

Retrieves the length of a tab's text.

C

int SftTabs_GetTabLabelLen(HWND hwndCtl, int iTab);

C++

int CSftTabs::GetTabLabelLen(int iTab) const;

Parameters

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.

Returns

The return value is the length of the tab's text, not including the terminating '\0' or -1 if an error occurred.

Comments

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.

Example

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


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.