Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

TextLength

Returns the length of an item's cell text.

C

int WINAPI SftTree_GetTextLength(HWND hwndCtl, int index);
int WINAPI SftTreeSplit_GetTextLength(HWND hwndCtl, int index);
int SftTree_GetTextColLength(HWND hwndCtl, int index, int realCol);
int SftTreeSplit_GetTextColLength(HWND hwndCtl, int index, int realCol);

C++

int CSftTree::GetTextLen(int index) const;
int CSftTree::GetTextLen(int index, int realCol) const;
int CSftTreeSplit::GetTextLen(int index) const;
int CSftTreeSplit::GetTextLen(int index, int realCol) const;

Parameters

hwndCtl

The window handle of the tree control.

index

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

realCol

The zero-based column number whose text length is to be retrieved.

Returns

The return value is the length of the item's cell text at the specified (or current) column, not including the terminating '\0' or -1 if an error occurred.

Comments

The GetTextLength function returns the length of an item's cell text.

The text length retrieved is based on the column specified using realCol or last defined using SetAccessColumn. Functions, which do not allow the realCol parameter, access the column last defined by SetAccessColumn or the last column referenced by a column specific function. The last column accessed can be retrieved using GetAccessColumn.

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