Hide

SftTree/DLL 7.5 - Tree Control

Display
Print

C/C++ API

Direct calls to the SftTree DLLs are used to communicate with the tree control for maximum efficiency.

The class CSftTree defines all necessary functions to communicate with the tree control. The class CSftTreeSplit defines a split tree control.

The API Reference section lists C and C++ macros and functions. They are sorted alphabetically, but leading SftTree_, SftTree_Get and SftTree_Set text is not considered. E.g., when looking up the function SftTree_GetCurSel, look for topic CurSel, the leading SftTree_Get is dropped.

Definitions and Structures

NameDescription
LPFNSFTTREE_OWNERDRAWPROCDefines the type of an application-supplied owner-draw function, which is called whenever an object needs to be rendered.
LPFNSFTTREE_VGETITEMDefines the type of the virtual data source callback used by SftTree/DLL to retrieve information about one item as it is needed by the tree control.
LPFNSFTTREE_VRELEASEITEMDefines the type of the virtual data source callback called by SftTree/DLL to release information previously returned by the SFTTREE_VGETITEM callback.
SFT_PICTUREUsed to describe a picture component (a bitmap, icon or ImageList image, etc.).
SFTTREE_CELLUsed with GetCellInfo/SetCellInfo to retrieve and set cell attributes and as part of the SFTTREE_ITEM structure (for a virtual data source).
SFTTREE_CELLINFOPARMUsed as parameter for GetCellInfo and SetCellInfo to retrieve and set cell attributes.
SFTTREE_CLASSDefines the window class name of a tree control without splitter bar.
SFTTREE_COLORSUsed with GetCtlColors and SetCtlColors to retrieve and set a tree control's color attributes.
SFTTREE_COLUMN_EXUsed with GetColumns and SetColumns to retrieve and set column attributes.
SFTTREE_CONTROLUsed with GetControlInfo and SetControlInfo to retrieve and set tree control attributes.
SFTTREE_DELETEPARMUsed to define an application-specific deletion callback routine, which is called whenever an item is removed from the tree control.
SFTTREE_DELETEPROCDefines the type of a user-supplied callback routine, called by SftTree/DLL whenever an item is removed from the tree control.
SFTTREE_DRAGINFOUsed during drag & drop operations and can be retrieved using GetDragInfo.
SFTTREE_DWORD_PTRDefines a type large enough to hold a DWORD or pointer value.
SFTTREE_IDDefines the type of an item ID.
SFTTREE_ITEMUsed by the callback function SFTTREE_VGETITEM to return the requested item information to SftTree/DLL when a virtual data source is used.
SFTTREE_MAXLEVELSDefines the maximum number of levels supported.
SFTTREE_NOCOLORUsed to indicate that the default color should be used.
SFTTREE_OBSOLETE_4Used to indicate compatibility with SftTree/DLL 4.0 (and older).
SFTTREE_OWNERDRAWUsed as parameter for an application-supplied owner-draw function of type LPFNSFTTREE_OWNERDRAWPROC.
SFTTREE_OWNERDRAWPARMUsed to define an application-specific owner-draw callback routine, which is called whenever an object needs to be rendered.
SFTTREE_ROWUsed with GetRowInfo and SetRowInfo and as part of the SFTTREE_ITEM structure (for a virtual data source).
SFTTREE_ROWINFOPARMUsed as parameter for GetRowInfo and SetRowInfo to retrieve and set row header attributes.
SFTTREE_SELENTRYUsed by GetSelItemsArray to return an array of structures describing groups of selected items.
SFTTREE_SORTPROC_CELLDATADefines the type of a user-supplied callback routine, called by SftTree/DLL to allow an application to sort items using SortDependents.
SFTTREE_SORTPROC_ITEMDefines the type of a user-supplied callback routine, called by SftTree/DLL to allow an application to sort items using SortDependents.
SFTTREE_SORTPROCEXDefines the type of a user-supplied callback routine, called by SftTree/DLL to allow an application to sort items using SortDependents.
SFTTREE_STATICDefines static linking of SftTree/DLL to an application.
SFTTREE_TOOLTIPSPARMUsed as parameter for SetToolTipsCallback, to define an application-specific ToolTips callback routine, which can define the ToolTip text when a ToolTip or ScrollTip is to be displayed.
SFTTREE_TOOLTIPSPROCDefines the type of a user-supplied callback routine, called by SftTree/DLL to allow an application to define the ToolTip text when a ToolTip or ScrollTip is to be displayed.
SFTTREE_VIRTUALDEFUsed by VirtualInitialize to use the tree control in virtual mode and to define the virtual data source.
SFTTREESPLIT_CLASSDefines the window class name of a tree control with splitter bar.

Functions

NameDescription
~CSftTreeStandard destructor.
~CSftTreeSplitStandard destructor.
AddStringAdds a new item to a tree control. The new item is added as the last item at level 0.
AdjustCellEditRectReturns a cell's location in client area coordinates of the left or right pane of a split tree control.
AutoExpandDefines whether items are automatically expanded when the mouse hovers over a collapsed parent item.
AutoExpandItemReturns the zero-based index of the item to be expanded as a result of a call to StartAutoExpandTimer or SetAutoExpand.
BackgroundBitmapDefines a background bitmap used as the background for the tree control.
BitmapsRegisters the size and sets the default item pictures used for all items.
ButtonsRegisters the size and sets the bitmaps used for expand/collapse buttons.
CalcCellFromPointCalculates the item index and column number given a point in tree control client area coordinates.
CalcColumnFromPointCalculates the column number given a point in tree control client area coordinates.
CalcIndexFromPointCalculates the item index number given a point in tree control client area coordinates.
CalcLimitDefines the maximum number of items to consider for optimal column width and scrolling calculation.
CalcOptimalColumnWidthCalculates a column's optimal width so text and pictures are not clipped.
CalcOptimalCellDimensionsCalculates a cell's optimal height and width so its contents aren't truncated.
CalcOptimalRowHeaderWidthCalculates the optimal width for row headers so text and pictures are not clipped.
CalcVisibleOnlyDefines whether only visible items are considered for optimal column width and scrolling calculation.
CaretColumnReturns the column where a mouse button was last clicked.
CaretIndexDefines the current item (caret location).
CellEditWindowReturns the window containing the specified cell in a split tree control.
CellInfoDefines a cell's attributes.
CellRectInfoReturns the location of a cell, the cell text and cell picture.
CellRectInfoExReturns the location of a cell, the cell text and cell picture.
CharSearchModeDefines the method used to search for matching items in response to characters typed by the user.
ClickAgainPosReturns the location of the item that was clicked again.
CollapseCollapses a parent item.
ColumnsDefines the number of columns and column attributes.
ControlDataDefines an application-defined value.
ControlInfoDefines the tree control's attributes.
CopyItemsCopies a group of items to a new location.
CountReturns the number of items in the tree control.
CreateCreates a tree control window and attaches it to the CSftTree or CSftTreeSplit object.
CrossColumnResizeDefines whether multiple columns can be resized during one column resizing operation.
CSftTreeStandard constructor.
CSftTreeSplitStandard constructor.
CtlColorsDefines the tree control's color attributes.
CurSelDefines the index of the selected item (single selection tree control).
CustomCodeDefines optional product customization.
DeleteCallbackDefines a deletion callback routine, called when items are deleted.
DeleteDependentsDeletes an item's dependent items.
DeleteStringDeletes an item.
DependentReturns dependent item information for a parent item.
DependentCountReturns the number of dependents for a parent item.
DisableNoScrollDefines the scroll bar handling status.
DisplayCellRectReturns the location of a cell.
DisplayCellRectForItemReturns the location of a cell.
DisplayColumnReturns the display column number given a real column number.
DisplayFooterDropDownRectReturns the dimensions of the column footer dropdown/filter button.
DisplayFooterRectReturns the dimensions of the column footer area.
DisplayHeaderDropDownRectReturns the dimensions of the column header dropdown/filter button.
DisplayHeaderRectReturns the dimensions of the column header area.
DragBitmapsDefines the drag & drop starting location attribute.
DragImageReturns a drag image representing the currently selected items.
DragInfoReturns drag & drop operation information in a SFTTREE_DRAGINFO structure.
DragTypeDefines the drag & drop detection attribute.
DrawSelectionOutlineDraws a selection outline.
DropHighlightDefines the current drag & drop target location.
DropHighlightStyleDefines the display attribute of the current drag & drop target item.
EnableSortIndicatorsEnables sort indicators in column headers.
EnterResizeModeAllows the user to resize the panes of a split tree control using the keyboard.
ExpandExpands a parent item.
ExpandCollapseButtonRectReturns the location of an item's expand/collapse button.
ExpandCollapseIndexReturns the zero-based index of the item to expand/collapse.
FindItemSearches item data.
FindStringSearches a string.
FindStringExSearches cells for a string.
FindStringExactSearches a string.
FirstDisplayColumnReturns the index of the first displayed column.
FlybyDefines whether flyby highlighting is enabled.
FlybyIndexReturs the index of the highlighted item for flyby highlighting.
FooterDefines a column's footer text.
FooterButtonDefines the column number of the currently pressed column footer button.
FooterFontDefines the font used for column footer text display.
FooterLengthReturns the length of a column's footer text.
FooterRectReturns the dimensions of the column footer area.
ForwardChildMsgsDefines the child window message handling status.
ForwardChildMsgsDefines the child window message handling status.
FreeGDIPlusImageLoadedFromResourceDeletes a GDI+ image obtained using SftTree_LoadGDIPlusImageFromResource.
HeaderDefines a column's header text.
HeaderButtonDefines the column number of the currently pressed column header button.
HeaderFontDefines the font used for column header text display.
HeaderLengthReturns the length of a column's header text.
HeaderRectReturns the dimensions of the column header area.
HorizontalExtentDefines the horizontal extent (in pixels) of the displayable area.
HorizontalOffsetDefines the current horizontal offset (in pixels) of the displayed area.
IndentationDefines the indentation (in pixels) for item levels.
InheritBgColorDefines whether the area to the left of the first cell inherits the cell's background color.
InsertStringInserts a new item using a string.
ItemBitmapDefines an item's item picture.
ItemBitmapAlignDefines whether item pictures of items are aligned with the cells of the immediate parent level.
ItemDataDefines an item's application-specific value.
ItemEditIgnoreDefines whether an item is ignored for cell editing.
ItemExpandDefines an item's expand status.
ItemExpandableDefines whether an item is expandable.
ItemExpandCollapseButtonDefines whether an item's expand/collapse button is shown.
ItemHeightReturns an item's height (in pixels).
ItemHeightMinMaxDefines an item's minimum and maximum height (in pixels).
ItemIDDefines an item's ID.
ItemIgnoreDefines whether the item is excluded from optimal column width and row header width calculation.
ItemIndexReturns an item's index given an item ID.
ItemLabelDefines an item's label picture information.
ItemLabelPictureDefines an item's label picture information.
ItemLevelDefines an item's level number.
ItemLinesDefines the number of text lines used for item height calculation.
ItemPictureDefines an item's item picture.
ItemPictureAlignDefines whether item pictures of items are aligned with the cells of the immediate parent level.
ItemRectReturns an item's location in client area coordinates.
ItemShownDefines an item's visibility status.
ItemsShownReturns the number of items displayable in the tree control's client area, including partial items.
ItemsShownCompleteReturns the number of items displayable in the tree control's client area, not including partial items.
ItemStatusDefines an item's enabled/disabled status.
KeyHandlingDefines keystrokes intercepted during cell editing.
LastDisplayColumnReturns the index of the last displayed column.
LeftWindowReturns the window handle or object of the tree control in the left pane of a split tree control.
MakeCellVisibleScrolls the specified cell into view horizontally and vertically so that it is displayed in the tree control's client area.
MakeCellVisibleScrolls the specified cell into view horizontally and vertically so that it is displayed in the tree control's client area.
MakeContentWindowDefines the specified window as a content window (virtual mode only).
LoadGDIPlusImageFromResourceLoads a GDI+ image from an application's or DLL's resources.
MakeColumnVisibleScrolls the specified column into view horizontally so that it is displayed in the tree control's client area.
MakeIntegralHeightResizes the tree control vertically so visible items are displayed in their entirety.
MakeRowHeaderOptimalSets the optimal row header width so that the text and pictures of all row headers can be displayed.
MakeRowVisibleScrolls the specified item into view vertically so that it is displayed in the tree control's client area.
MakeSplitterOptimalPositions the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar.
MoveItemsMoves a group of items to a new position in the tree control.
MultilineFooterDefines whether column footers can display multiple lines of text.
MultilineHeaderDefines whether column headers can display multiple lines of text.
NextShownReturns the next visible item.
NoFocusStyleDefines the display style of selected items when the tree control does not have the input focus.
OpenEndedDefines whether the last column is open-ended.
OverheadWidthReturns the width of the area added to the first column for hierarchical graphics components.
OwnerDrawCallbackDefines an application-supplied owner-draw function, which is called whenever an object needs to be rendered.
ParentReturns an item's parent index.
PicturesRegisters the size and sets the default item pictures used for all items.
PlusMinusDefines the plus/minus bitmaps used for all items.
PrevShownReturns the previous visible item.
RealColumnReturns the real column number given a display column number.
RecalcHorizontalExtentRecalculates the optimal horizontal scrolling extent.
RegisterAppRegisters an application with SftTree/DLL.
ReorderColumnsDefines whether columns can be reordered using column drag & drop.
ResetContentRemoves all items from the tree control.
ResetSortIndicatorsRemoves all sort indicators from all columns.
ResizeColumnReturns the column number of the column being resized.
ResizeFooterDefines whether column footers are resizable by the user.
ResizeHeaderDefines whether column headers are resizable by the user.
RightWindowReturns the window handle or object of the tree control in the right pane of a split tree control.
RowColBitmapDefines the picture displayed in the row/column header.
RowColBitmapStyleDefines the position of the picture displayed in the row/column header.
RowColFooterButtonDefines whether the row/column footer button is currently down (pressed).
RowColFooterPictureDefines the picture displayed in the row/column footer.
RowColFooterPictureStyleDefines the position of the picture displayed in the row/column footer.
RowColFooterRectReturns the dimensions of the row/column footer area.
RowColFooterStyleDefines the position of the text displayed in the row/column footer.
RowColFooterTextDefines the row/column footer text.
RowColFooterTextLengthReturns the row/column footer text length.
RowColHeaderButtonDefines whether the row/column header button is currently down (pressed).
RowColHeaderRectReturns the dimensions of the row/column header area.
RowColHeaderPictureDefines the picture displayed in the row/column header.
RowColHeaderPictureStyleDefines the position of the picture displayed in the row/column header.
RowColHeaderStyleDefines the position of the text displayed in the row/column header.
RowColHeaderTextDefines the row/column header text.
RowColHeaderTextLengthReturns the row/column header text length.
RowColPictureDefines the picture displayed in the row/column header.
RowColPictureStyleDefines the position of the picture displayed in the row/column header.
RowColTextDefines the row/column header text.
RowColTextLengthReturns the row/column header text length.
RowHeaderFontDefines the font used for row header text display.
RowHeaderLinesDefines the number of text lines used for row header height calculation.
RowHeaderRectReturns the dimensions of the row header area.
RowHeaderStyleDefines the position of text displayed in the row headers.
RowHeaderWidthDefines the width of the row header area.
RowInfoDefines an item's row header attributes.
RowTextDefines an item's row header text.
RowTextLengthReturns an item's row header text length.
RubberbandSelectionDefines whether click-drag selection of multiple items using a selection rectangle is supported.
ScrollTipsDefines whether ScrollTips are displayed during vertical scrolling.
SelDefines the selection status of an item (multiple selection tree only).
SelCountReturns the number of currently selected items (multiple selection tree only).
SelectionAreaDefines the area where selection changes occur.
SelectionStyleDefines the display style of selected items.
SelectStringSearches a string and selects the matching item.
SelectStringExactSearches a string and selects the matching item.
SelItemRangeSelects or deselects a range of items (multiple selection tree only).
SelItemsFills an array with the index numbers of currently selected items.
SelItemsArrayReturns an array of SFTTREE_SELENTRY structures describing groups of selected items.
Show3DDefines the current display method used for items.
ShowBitmapsReturns a value indicating the presence of item pictures.
ShowButton0Defines the presence of level 0 expand/collapse buttons.
ShowButtonsDefines the presence of expand/collapse buttons (other than level 0).
ShowFocusDefines whether a focus rectangle is drawn around the current item when the tree control has the input focus.
ShowFooterDefines the presence of column footers.
ShowFooterButtonsDefines the presence of column footers buttons.
ShowGridDefines the presence of grid lines.
ShowHeaderDefines the presence of column headers.
ShowHeaderButtonsDefines the presence of column header buttons.
ShowLabelsReturns the presence of label pictures.
ShowPlusMinusReturns the presence of plus/minus bitmaps.
ShowRowColFooterButtonDefines the row/column footer's display style.
ShowRowColHeaderButtonDefines the row/column header's display style.
ShowRowHeaderDefines the row header display style.
ShowTruncatedDefines whether text is clipped or truncated using trailing "...".
SiblingReturns an item's sibling information.
SortColumn1Returns information about the currently sorted column.
SortDependentsSorts items.
SplitColumnDefines the number of columns displayed in the left pane of a split tree control.
SplitterOffsetDefines the offset of the splitter bar relative to the left edge of the tree control's client area.
SplitterRectReturns the location of the splitter bar in client area coordinates.
SplitterWidthDefines the width of the splitter bar in a split tree control.
StartAutoExpandTimerStarts a timer for the specified item, so a SFTTREEN_AUTOEXPANDING notification will be sent.
StopAutoExpandTimerEnds a started SFTTREEN_AUTOEXPANDING notification timer.
TabKeyInterceptDefines the status of Tab key handling during cell editing.
TextDefines an item's cell text.
TextLengthReturns the length of an item's cell text.
ToolTipAlwaysDefines whether ToolTips are shown even if cell text is not truncated.
ToolTipsCallbackDefines an application supplied callback function, which can define the ToolTip text when a ToolTip or ScrollTip is to be displayed.
ToolTipsUseEntireCellDefines whether ToolTips use the entire cell.
TopIndexDefines the index number of the item shown at the top of the tree control.
TopParentReturns the highest level parent index number for an item.
TreeLineStyleDefines the display style of tree lines.
UnregisterAppUnregisters an application from SftTree/DLL.
UpdateCaretExpandCollapseDefines whether the current location (caret) is updated when the expand/collapse buttons are used.
UseSmoothScrollDefines whether smooth scrolling is used.
UseThemesDefines whether the control can use Windows themes.
VAlignDefines the vertical alignment of tree lines, label pictures, plus/minus bitmap and item pictures.
VirtualCountDefines the number of items when using a virtual data source.
VirtualInitializeInitializes a tree control for virtual mode and for use with a virtual data source.
VirtualItemChangedNotifies a tree control using a virtual data source that items have been changed.
VirtualUserDataReturns the application defined value last used in the SFTTREE_VIRTUALDEF structure when VirtualInitialize was called.

See Also Categories | Notifications