Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

VAlign

Defines the vertical alignment of tree lines, label pictures, plus/minus bitmap and item pictures.

C

DWORD WINAPI SftTree_GetVAlign(HWND hwndCtl);
void WINAPI SftTree_SetVAlign(HWND hwndCtl, DWORD style);
DWORD WINAPI SftTreeSplit_GetVAlign(HWND hwndCtl);
void WINAPI SftTreeSplit_SetVAlign(HWND hwndCtl, DWORD style);

C++

DWORD CSftTree::GetVAlign() const;
void CSftTree::SetVAlign(DWORD style);
DWORD CSftTreeSplit::GetVAlign() const;
void CSftTreeSplit::SetVAlign(DWORD style);

Parameters

hwndCtl

The window handle of the tree control.

style

A value describing the desired vertical alignment.

SFTTREE_VCENTERThe tree lines, label pictures, plus/minus bitmap and item pictures are vertically centered within the item.
SFTTREE_TOPThe tree lines, label pictures, plus/minus bitmap and item pictures are aligned with the top of the item.
SFTTREE_BOTTOMThe tree lines, label pictures, plus/minus bitmap and item pictures are aligned with the bottom of the item.

Returns

GetVAlign returns the current vertical alignment of tree lines, label pictures, plus/minus bitmap and item pictures.

Comments

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

Columns and cells can further define the vertical alignment of cell contents (see SFTTREE_COLUMN_EX, style member and SFTTREE_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