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);
hwndCtl
The window handle of the combo box control.
style
A value describing the desired vertical alignment.
| SFTBOX_VCENTER | The tree lines, label pictures and item pictures are vertically centered within the item. |
| SFTBOX_TOP | The tree lines, label pictures and item pictures are aligned with the top of the item. |
| SFTBOX_BOTTOM | The tree lines, label pictures and item pictures are aligned with the bottom of the item. |
GetVAlign returns the current vertical alignment of tree lines, label pictures and item pictures.
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