Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

HeaderLength

Returns the length of a column's header text.

C

int WINAPI SftTree_GetHeaderLength(HWND hwndCtl);
int SftTree_GetHeaderColLength(HWND hwndCtl, int realCol);
int WINAPI SftTreeSplit_GetHeaderLength(HWND hwndCtl);
int SftTreeSplit_GetHeaderColLength(HWND hwndCtl, int realCol);

C++

int CSftTree::GetHeaderLen() const;
int CSftTreeSplit::GetHeaderLen(int realCol) const;

Parameters

hwndCtl

The window handle of the tree control.

realCol

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

Returns

GetHeaderLen returns the length of the specified column's header text in characters, not including the terminating '\0' or -1 if an error occurred.

Comments

The GetHeaderLength function returns the length of a column's header text.

The header 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