SftTree/DLL 6.5

ShowButtons

Softel vdm, Inc.

Defines the presence of expand/collapse buttons (other than level 0).

C

BOOL WINAPI SftTree_GetShowButtons(HWND hwndCtl);
void WINAPI SftTree_SetShowButtons(HWND hwndCtl, BOOL fSet);
BOOL WINAPI SftTreeSplit_GetShowButtons(HWND hwndCtl);
void WINAPI SftTreeSplit_SetShowButtons(HWND hwndCtl, BOOL fSet);

C++

BOOL CSftTree::GetShowButtons() const;
void CSftTree::SetShowButtons(BOOL fSet = TRUE);
BOOL CSftTreeSplit::GetShowButtons() const;
void CSftTreeSplit::SetShowButtons(BOOL fSet = TRUE);

Parameters

hwndCtl

The window handle of the tree control.

fSet

Set to TRUE to display expand/collapse buttons for all items (except items on level 0), otherwise set to FALSE.

Returns

GetShowButtons returns a value indicating whether expand/collapse buttons for items on all levels except level 0 are shown.  TRUE is returned if expand/collapse buttons are shown, otherwise FALSE is returned.

Comments

The GetShowButtons and SetShowButtons functions define the presence of expand/collapse buttons (other than level 0).

SetShowButton0 can be used to enable or disable expand/collapse buttons on level 0.

The SetItemExpandCollapseButton function can be used to hide an item's expand/collapse button

See Also  C/C++ API  |  CategoriesNotifications

 


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