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