Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

GetToolTipLen

Retrieves the length of a tab's ToolTip text.

C

int SftTabs_GetToolTipLen(HWND hwndCtl, int iTab);

C++

int CSftTabs::GetToolTipLen(int iTab) const;

Parameters

hwndCtl

The window handle of the tab control.

iTab

The zero-based index of the tab for which the ToolTip text length is to be retrieved.

Returns

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

Comments

The GetToolTipLen function retrieves the length of a tab's ToolTip text.

When using the 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 ToolTip text:

C

len = SftTabs_GetToolTipLen(hwndTab, 9); 

C++

len = m_Tab.GetToolTipLen(9);

See Also C/C++ API | C++ Classes | Notifications


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