HeaderPane
Main
Hide
Share Link
Print

RowHeaderStyle

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

Parameters

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.

styleHorizontal row header text alignment
not specifiedIf no horizontal row header text alignment is specified, the default is ES_LEFT.
ES_LEFTThe row header text is left aligned within the row header.
ES_CENTERThe row header text is centered within the row header.
ES_RIGHTThe row header text is right aligned within the row header.
styleVertical row header text alignment
not specifiedIf no vertical row header text alignment is specified, the default is SFTBOX_VCENTER.
SFTBOX_TOPThe row header text and picture are aligned with the top of the row header.
SFTBOX_VCENTERThe row header text and picture are vertically centered within the row header.
SFTBOX_BOTTOMThe 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_DISABLEDThe row headers are disabled, cannot be clicked and are displayed in a "grayed" fashion. The item contents are otherwise unaffected.
SFTBOX_HEADER_UPThe 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.

Returns

GetRowHeaderStyle returns a value indicating the position of the text displayed in row headers.

Comments

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


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