Defines the position of text displayed in the row headers.
C
int WINAPI SftBox_GetRowHeaderStyle(HWND hwndCtl); void WINAPI SftBox_SetRowHeaderStyle(HWND hwndCtl, int style);
C++
int CSftBox::GetRowHeaderStyle() const; void CSftBox::SetRowHeaderStyle(int style);
hwndCtl
The window handle of the combo box control.
style
The row header style. This value applies to all row headers.
One value of each of the following tables can be combined and passed as style parameter.
| style | Horizontal row header text alignment |
|---|---|
| not specified | If no horizontal row header text alignment is specified, the default is ES_LEFT. |
| ES_LEFT | The row header text is left aligned within the row header. |
| ES_CENTER | The row header text is centered within the row header. |
| ES_RIGHT | The row header text is right aligned within the row header. |
| style | Vertical row header text alignment |
|---|---|
| not specified | If no vertical row header text alignment is specified, the default is SFTBOX_VCENTER. |
| SFTBOX_TOP | The row header text and picture are aligned with the top of the row header. |
| SFTBOX_VCENTER | The row header text and picture are vertically centered within the row header. |
| SFTBOX_BOTTOM | The row header text and picture are aligned with the bottom of the row header. |
The style value can optionally be combined with one or more of the following values:
| SFTBOX_HEADER_DISABLED | The row headers are disabled, cannot be clicked and are displayed in a "grayed" fashion. The item contents are otherwise unaffected. |
| SFTBOX_HEADER_UP | The row header buttons will automatically return to their "up" position when clicked. Without this value, the row header button of the selected item is shown in its "down" position. |
GetRowHeaderStyle returns a value indicating the position of the text displayed in row headers.
The GetRowHeaderStyle and SetRowHeaderStyle functions define the position of text displayed in the row headers.
The row header style defined using SetRowHeaderStyle affects all row headers, in the static portion and the dropdown portion. The text and picture alignment can be overridden for an individual row header using the flag member of the SFTBOX_ROW structure (see SetRowInfo).
Row header text can be defined using SetRowText.
Row headers are made visible using SetShowRowHeader.
See Also C/C++ API | Categories | Notifications