SftTree/DLL 6.5

CalcVisibleOnly

Softel vdm, Inc.

Defines whether only visible items are considered for optimal column width and scrolling calculation.

C

BOOL WINAPI SftTree_GetCalcVisibleOnly(HWND hwndCtl);
void WINAPI SftTree_SetCalcVisibleOnly(HWND hwndCtl, BOOL fSet);
BOOL WINAPI SftTreeSplit_GetCalcVisibleOnly(HWND hwndCtl);
void WINAPI SftTreeSplit_SetCalcVisibleOnly(HWND hwndCtl, BOOL fSet);

C++

BOOL CSftTree::GetCalcVisibleOnly() const;
void CSftTree::SetCalcVisibleOnly(BOOL fSet = TRUE);
BOOL CSftTreeSplit::GetCalcVisibleOnly() const;
void CSftTreeSplit::SetCalcVisibleOnly(BOOL fSet = TRUE);

Parameters

hwndCtl

The window handle of the tree control.

fSet

Specify TRUE to limit the width calculation to visible items only.  Items which are not visible because their parent items are collapsed are not included in the width calculation.

Returns

GetCalcVisibleOnly returns TRUE if only visible items are considered, FALSE otherwise.

Comments

The GetCalcVisibleOnly and SetCalcVisibleOnly functions define whether only visible items are considered for optimal column width and scrolling calculation.

This function is used to define whether only visible items should be considered when using SftTree_CalcOptimalColumnWidth, SftTree_CalcOptimalRowHeaderWidth, SftTree_MakeColumnOptimal, SftTree_MakeRowHeaderOptimal and SftTree_RecalcHorizontalExtent.  The C implementation of these functions does not support the fSet parameter.  SetCalcVisibleOnly is not normally used with C++ as the equivalent C++ functions support this as a parameter.

See Also  C/C++ API  |  CategoriesNotifications

 


Feedback / comments / error reports for this topic
© 2009 - Softel vdm, Inc. - www.softelvdm.com