HeaderPane
Main
Hide
Share Link
Print

RowColText

Defines the row/column header text.

C

int WINAPI SftBox_GetRowColText(HWND hwndCtl, LPTSTR lpszBuffer, int cbMax);
BOOL WINAPI SftBox_SetRowColText(HWND hwndCtl, LPCTSTR lpszText);

C++

int CSftBox::GetRowColText(LPTSTR lpszBuffer, int cbMax) const;
BOOL CSftBox::SetRowColText(LPCTSTR lpszText);

Parameters

hwndCtl

The window handle of the combo box control.

lpszBuffer

A pointer to a buffer where the row/column header text will be returned.

cbMax

The size of the buffer pointed to by lpszBuffer, in characters, including the terminating '\0'.

lpszText

The new row/column header text.

Returns

GetRowColText returns the number of characters returned in the buffer, not including the terminating '\0'.

SetRowColText returns TRUE if the function was successful, otherwise FALSE is returned.

Comments

The GetRowColText and SetRowColText functions define the row/column header text.

If the row/column header text does not fit into the buffer, GetRowColText returns the first cbMax-1 characters, followed by a terminating '\0'. GetRowColTextLength can be used to determine the required lpszBuffer size.

The text is shown in the row/column header of the static portion and the dropdown portion. Its alignment is defined using SetRowColHeaderStyle.

The row/column header area is only shown if row headers and column headers are both shown (see SetShowRowHeader and SetShowHeader).

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


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