CTreeCtrl::SetIndent

Call this function to set the width of indentation for a tree view control and redraw the control to reflect the new width.

void SetIndent(
   UINT nIndent 
);

Parameters

  • nIndent
    Width, in pixels, of the indentation. If nIndent is less than the system-defined minimum width, the new width is set to the system-defined minimum.

Example

See the example for CTreeCtrl::GetIndent.

Requirements

Header: afxcmn.h

See Also

Reference

CTreeCtrl Class

Hierarchy Chart

CTreeCtrl::GetIndent

CTreeCtrl::GetItemRect

Other Resources

CTreeCtrl Members