bOk = MTblSetTreeFlags( hWndTbl, nFlags, bSet )

Sets or clears a table's tree flags.

Parameters
hWndTbl
Window Handle: Handle of the table

nFlags
Number: One ore more tree flags to set or clear

bSet
Boolean: Whether to set (TRUE) or clear (FALSE) the specified flags

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example
In this example we set the flags MTBL_TREE_FLAG_INDENT_ALL and MTBL_TREE_FLAG_NO_ROWLINES:

Call MTblSetTreeFlags( hWndTbl, MTBL_TREE_FLAG_INDENT_ALL | MTBL_TREE_FLAG_NO_ROWLINES, TRUE )

Remarks
If you want to display a bottom-up tree it's important to set the appropriate flag - otherwise the tree lines are not painted correctly and the functions MTblGetFirstChildRow / MTblGetNextChildRow return wrong results.

See also
Tree view

Created with the Personal Edition of HelpNDoc: Free HTML Help documentation generator