HeaderPane
Main
Hide

SftTree/DLL 8.0 - Tree Control

Share Link
Print

SizeBox

Defines whether a size box is shown in the tree control's lower-right corner so the user can resize the control by dragging it.

C

BOOL WINAPI SftTree_GetSizeBox(HWND hwndCtl);
BOOL WINAPI SftTree_GetSizeBoxActive(HWND hwndCtl);
void WINAPI SftTree_SetSizeBox(HWND hwndCtl, BOOL fSet);
BOOL WINAPI SftTreeSplit_GetSizeBox(HWND hwndCtl);
BOOL WINAPI SftTreeSplit_GetSizeBoxActive(HWND hwndCtl);
void WINAPI SftTreeSplit_SetSizeBox(HWND hwndCtl, BOOL fSet);

C++

BOOL CSftTree::GetSizeBox() const;
BOOL CSftTree::GetSizeBoxActive() const;
void CSftTree::SetSizeBox(BOOL fSet = TRUE);
BOOL CSftTreeSplit::GetSizeBox() const;
BOOL CSftTreeSplit::GetSizeBoxActive() const;
void CSftTreeSplit::SetSizeBox(BOOL fSet = TRUE);

Parameters

hwndCtl

The window handle of the tree control.

fSet

TRUE to show a size box in the tree control's lower-right corner, FALSE to suppress it.

Returns

GetSizeBox returns TRUE if a size box is shown, otherwise FALSE.

GetSizeBoxActive returns TRUE while the user is actively dragging the size box to resize the control, otherwise FALSE.

SetSizeBox has no return value.

Comments

The GetSizeBox and SetSizeBox functions control whether a size box is shown in the tree control's lower-right corner. The size box is a small grip the user can drag to resize the tree control.

The size box is hidden by default.

GetSizeBoxActive can be polled to detect whether the user is currently dragging the size box. This is useful when the application needs to suppress operations (e.g., layout updates) for the duration of an interactive resize.

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