Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

SplitterOffset

Defines the offset of the splitter bar relative to the left edge of the tree control's client area.

C

void WINAPI SftTreeSplit_SetSplitterOffset(HWND hwndCtl, int offset);

C++

void CSftTreeSplit::SetSplitterOffset(int offset);

Parameters

hwndCtl

The window handle of the tree control.

offset

A value defining the offset of the splitter bar relative to the left edge of the tree control's client area (in pixels). If -1 is specified, the splitter bar is centered in the tree control's client area making each pane the same size. If the offset falls outside of the client area, the splitter bar is aligned with the left or right edge, whichever is closer to the offset specified.

Comments

The GetSplitterOffset and SetSplitterOffset functions define the offset of the splitter bar relative to the left edge of the tree control's client area.

SetSplitterOffset is only available for a split tree control.

MakeSplitterOptimal can be used to position the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar.

The coordinates of the splitter bar can be retrieved using GetSplitterRect.

SetSplitterWidth is used to change the width of the splitter bar.

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