Defines the position of the text displayed in the row/column header.
C
DWORD WINAPI SftBox_GetRowColHeaderStyle(HWND hwndCtl); void WINAPI SftBox_SetRowColHeaderStyle(HWND hwndCtl, DWORD style);
C++
DWORD CSftBox::GetRowColHeaderStyle() const; void CSftBox::SetRowColHeaderStyle(DWORD style);
hwndCtl
The window handle of the combo box control.
style
The style used for the row/column header.
One value of each of the following tables can be combined and passed as style parameter.
| style | Horizontal row/column header text alignment |
|---|---|
| not specified | If no horizontal row/column header text alignment is specified, the default is ES_LEFT. |
| ES_LEFT | The row/column header text is left aligned within the row/column header. |
| ES_CENTER | The row/column header text is centered within the row/column header. |
| ES_RIGHT | The row/column header text is right aligned within the row/column header. |
| style | Vertical row/column header text alignment |
|---|---|
| not specified | If no vertical row/column header text alignment is specified, the default is SFTBOX_VCENTER. |
| SFTBOX_TOP | The row/column header text is aligned with the top of the row/column header. |
| SFTBOX_VCENTER | The row/column header text is vertically centered within the row/column header. |
| SFTBOX_BOTTOM | The row/column header text is aligned with the bottom of the row/column header. |
The style value can optionally be combined with one or more of the following values:
| SFTBOX_HEADER_DISABLED | The row/column header is disabled, cannot be clicked and is displayed in a "grayed" fashion. |
| SFTBOX_HEADER_UP | The row/column header button will automatically return to its "up" position when clicked. |
GetRowColHeaderStyle returns a value indicating the position of the text displayed in the row/column header.
The GetRowColHeaderStyle and SetRowColHeaderStyle functions define the position of the text displayed in the row/column header.
The row/column header text can be defined using SetRowColText. The position of the row/column header picture is defined using SetRowColPictureStyle.
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