HeaderPane
Main
Hide
Share Link
Print

ShowTreeLines

Defines the presence of tree lines.

C

BOOL WINAPI SftBox_GetShowTreeLines(HWND hwndCtl);
void WINAPI SftBox_SetShowTreeLines(HWND hwndCtl, BOOL fSet);

C++

BOOL CSftBox::GetShowTreeLines() const;
void CSftBox::SetShowTreeLines(BOOL fSet);

Parameters

hwndCtl

The window handle of the combo box control.

fSet

Set to TRUE to show tree lines, otherwise set to FALSE to hide tree lines.

Returns

GetShowTreeLines returns TRUE if tree lines are shown, otherwise FALSE is returned.

Comments

The GetShowTreeLines and SetShowTreeLines functions define the presence of tree lines.

Tree lines connect items of a hierarchical combo box to their parent item. SetShowTreeLines is a simple way to turn tree lines on or off. SetShowTreeLines(TRUE) sets the tree line style SFTBOX_TREELINE_SOLID, SetShowTreeLines(FALSE) sets the tree line style SFTBOX_TREELINE_NONE (see SetTreeLineStyle). SetShowTreeLines always sets the tree line style of both the dropdown portion and the static portion.

GetShowTreeLines returns TRUE if the current tree line style (see GetTreeLineStyle) is a style other than SFTBOX_TREELINE_NONE.

SetTreeLineStyle offers additional tree line styles, such as dotted tree lines.

When a combo box is created, tree lines are not shown.

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


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