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;
hwndCtl
The window handle of the combo box control.
col
The zero-based column number whose header text length is to be retrieved.
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.
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