HeaderPane
Main
Hide
Share Link
Print

HeaderLength

Returns the length of a column's header text.

C

int WINAPI SftBox_GetHeaderLength(HWND hwndCtl, int col);

C++

int CSftBox::GetHeaderLength(int col) const;

Parameters

hwndCtl

The window handle of the combo box control.

col

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

Returns

GetHeaderLength returns the length of the specified column's header text in characters, not including the terminating '\0'. 0 is returned if the column has no header text, -1 if col is not a valid column number.

Comments

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

GetHeaderLength is typically used to allocate a buffer of sufficient size before retrieving the header text using GetHeader.

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


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.