HeaderPane
Main
Hide
Share Link
Print

VAlign

Defines the vertical alignment of tree lines, label pictures and item pictures.

C

DWORD WINAPI SftBox_GetVAlign(HWND hwndCtl);
void WINAPI SftBox_SetVAlign(HWND hwndCtl, DWORD style);

C++

DWORD CSftBox::GetVAlign() const;
void CSftBox::SetVAlign(DWORD style);

Parameters

hwndCtl

The window handle of the combo box control.

style

A value describing the desired vertical alignment.

SFTBOX_VCENTERThe tree lines, label pictures and item pictures are vertically centered within the item.
SFTBOX_TOPThe tree lines, label pictures and item pictures are aligned with the top of the item.
SFTBOX_BOTTOMThe tree lines, label pictures and item pictures are aligned with the bottom of the item.

Returns

GetVAlign returns the current vertical alignment of tree lines, label pictures and item pictures.

Comments

The GetVAlign and SetVAlign functions define the vertical alignment of tree lines, label pictures and item pictures.

The setting applies to the dropdown portion and the static portion of the combo box. Expand/collapse buttons are aligned the same way. By default, SFTBOX_VCENTER is used.

Columns and cells can further define the vertical alignment of cell contents (see SFTBOX_COLUMN, style member and SFTBOX_CELL, flag member).

Vertical alignment is usually only used if SetItemLines is used to define more than one line of text.

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


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