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
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;
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.
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.
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