SftTree/DLL 6.5

OpenEnded

Softel vdm, Inc.

Defines whether the last column is open-ended.

C

BOOL WINAPI SftTree_GetOpenEnded(HWND hwndCtl);
void WINAPI SftTree_SetOpenEnded(HWND hwndCtl, BOOL fSet);
BOOL WINAPI SftTreeSplit_GetOpenEnded(HWND hwndCtl, BOOL fLeft);
void WINAPI SftTreeSplit_SetOpenEnded(HWND hwndCtl, BOOL fSet, BOOL fLeft);

C++

BOOL CSftTree::GetOpenEnded() const;
void CSftTree::SetOpenEnded(BOOL fSet = TRUE);
BOOL CSftTreeSplit::GetOpenEnded(BOOL fLeft = TRUE) const;
void CSftTreeSplit::SetOpenEnded(BOOL fSet = TRUE, BOOL fLeft = FALSE);

Parameters

hwndCtl

The window handle of the tree control.

fSet

Set to TRUE to define the last column as open-ended.  Set to FALSE to use the column width defined in the last column's SFTTREE_COLUMN_EX structure.

fLeft

Set to TRUE to return or set a value defining the last column on the left side of a split tree control (the portion of the tree control containing the hierarchy) as open-ended.  If FALSE is specified, the open-ended status of the last column on the right side is returned or set.

Returns

GetOpenEnded returns TRUE if the last column is open-ended, otherwise FALSE is returned.

Comments

The GetOpenEnded and SetOpenEnded functions define whether the last column is open-ended.

An open-ended last column always uses at least the defined column width or the space remaining between the previous column and the right edge of the control.  A fixed-width last column is defined with a specified width and any data which doesn't fit is truncated. 

See Also  C/C++ API  |  CategoriesNotifications

 


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