# SftTree/DLL 8.0 — Guide > SftTree/DLL is a tree control for the Windows™ operating system, offering multi-line, multi-column, hierarchical data displays for applications written using C, C++ and MFC. Index of the SftTree/DLL 8.0 guide, which is split into 5 files in reading order. Each entry links one file and lists its topics; read only the files you need. Online documentation: https://softelvdm.com/Documentation/SftTree%20DLL%208%200 API reference (index of the reference files): https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-DLL-8.0-reference.txt ## Introduction https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-DLL-8.0-guide-1.txt - Product Description: SftTree/DLL is a tree control for the Windows™ operating system, offering multi-line, multi-column, hierarchical data displays for applications written using C, C++ and MFC. - New Features: SftTree/DLL 8.0 is virtually 100% upward compatible from version 7.5 and earlier versions. - Upgrading to Version 8.0: Only a minimal conversion is required when upgrading from an earlier version of SftTree/DLL to SftTree/DLL 8.0. - Upgrading from SftTree/DLL 4.0: Only a minimal conversion is required when upgrading from SftTree/DLL 4.0 (or an earlier version) to SftTree/DLL 8.0. - Installing SftTree/DLL: When you are ready to install SftTree/DLL: ## Features (1 of 2) https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-DLL-8.0-guide-2.txt - Tree Components: The following describes the individual components that are available in a SftTree/DLL tree control. - Tree Items: An item (also called row) is the term used to refer to one element added to the tree control and includes the row header, all pictures, tree lines, expand/collapse buttons and all cells. - Expanding/Collapsing Items: SftTree/DLL supports expanding and collapsing tree items with minimal application intervention. - Fixed / Variable Height Items: There are two methods by which a tree control determines the height of an item in the list. - Content Windows: Each cell can contain a child window. - Virtual Mode: The tree control can be used to display flat lists (without hierarchy) with up to 2,000,000,000 items. - Virtual Data Source: A tree control can be populated using conventional methods by adding items one at a time using AddString or InsertString. - Split Tree Control - Splitter Bar: A split tree control is a tree control that has multiple columns and a splitter bar. - Right-To-Left Reading Support: When the extended style WS_EX_RIGHT is given, the tree control will support right-to-left reading where the tree hierarchy is displayed on the right hand side of the control. - Using Themes: With Windows XP, Windows themes were introduced. - Dark Mode: SftTree/DLL 8.0 supports dark mode. - High Contrast: Windows High Contrast is an accessibility setting, not a visual preference. - Accessibility (Screen Readers): SftTree/DLL 8.0 ships with built-in Windows UI Automation (UIA) support. ## Features (2 of 2) https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-DLL-8.0-guide-3.txt - Per-Monitor DPI and Scaling: SftTree/DLL 8.0 is fully Per-Monitor v2 DPI-aware. - Item IDs: Items in a tree control are managed as a linear list or array of items. - Horizontal Scrolling: SftTree/DLL fully supports horizontal scrolling. - Multi-Line Cell Text: Cell text can consist of several text lines. - Cell Merging: The contents of a cell can merge into an adjacent cell (on the right), including the cell colors, fonts and graphics attributes. - Expand/Collapse Buttons: Expand/collapse buttons are optional buttons displayed to allow users to expand and collapse tree sections by clicking a button. - Row Headers: The optional row headers are available for single- and multi-column tree controls, with labeled buttons or just titles. - Column Headers: The optional column header is available for single- and multi-column trees, with labeled buttons or just titles. - Column Footers: The optional column footer is available for single- and multi-column trees, with labeled buttons or just titles. - Columns: A SftTree/DLL tree control can define multiple columns, each with its individual text alignment (left, right, center). - Column Drag & Drop: SftTree/DLL can be enabled to allow users of the control to reorder columns by dragging a column and dropping it at the new position in the control. - Column Resizing: A SftTree/DLL control can define multiple columns, each with its individual text alignment (left, right, center). - Display vs. Real Columns: When allowing column drag & drop to reorder columns, the user may see columns in an order other than the order in which an application sees the columns. - Drag & Drop: SftTree/DLL supports a drag & drop protocol by sending WM_COMMAND messages to the parent window if the tree control has the appropriate window style SFTTREESTYLE_DRAGDROP defined. - Cell Editing: SftTree/DLL supports editing of cell text using a unique approach. - Keyboard Interface: A tree control responds to the PgUp, PgDn, Home, End keys, etc. - Selections: A SftTree/DLL tree control supports single and multiple selection, based on the window style SFTTREESTYLE_MULTIPLESEL used when the tree control is created. - ScrollTips: ScrollTips are displayed when the user drags the vertical scroll bar's scroll box using the mouse. - ToolTips: If the text or picture in a cell are only partially visible, a ToolTip may be displayed if the mouse cursor rests above the partially displayed area. - Progress Bar: SftTree/DLL supports a simple progress bar display in each cell. - Flyby Highlighting: As the mouse cursor is positioned above any cell of an item in the tree control, the cell in the first displayed column can be shown underlined. - Bitmap Transparency: SftTree/DLL automatically uses bitmap transparency for all bitmaps used throughout a tree control. - GDI+: If GDI+ is available, the tree control supports additional features not otherwise available: - Context Menu: A context menu (or popup menu) is easily implemented with SftTree/DLL. ## Overview, Programming, Demo Application, Samples https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-DLL-8.0-guide-4.txt - Overview: Depending on the programming language used, the steps necessary to add a tree control to an application differ somewhat, but the following steps outline the basic method: - Building Applications: This section describes how to prepare an application using the C or C++ programming language to successfully use SftTree/DLL. - Creating a Dialog Resource: This section describes how to add a tree control to a dialog using Visual Studio. - Using C: This section describes how to use SftTree/DLL in an application written using the C programming language. - Using C++/MFC: This section describes how to use SftTree/DLL in an application written using C++ and the Microsoft Foundation Class library (MFC). - MFC and Notifications: Notifications can be handled by a tree control's parent window or directly by the tree control itself (in a derived class). - Demo Application: During the installation of SftTree/DLL, an icon for the demo application "Demo" is installed in the program group SftTree/DLL 8.0. - Samples: SftTree/DLL includes sample code for both C and C++. - Sample Code: This example file contains numerous C++ code snippets demonstrating simple functions without a complete sample application. ## CellEditing Sample (C) https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-DLL-8.0-guide-5.txt - CellEditing Sample (C): This sample illustrates cell editing using an edit control and a combo box, with cell navigation and restricted cells. - ContextMenu Sample (C): This sample illustrates context menus, sort indicators and dropdown/filter buttons. - DragDrop Sample (C): This sample illustrates drag & drop within and between tree controls. - OwnerDraw Sample (C): This sample illustrates owner-draw cells and column headers. - TreeImages Sample (C): This sample illustrates various image types, progress bars, checkbox and radio button manipulation. - Virtual Sample (C): This sample illustrates a tree control in virtual mode, used to display a list with 1 million items. - CellEditing Sample (C++): This sample illustrates cell editing using an edit control and a combo box, with cell navigation and restricted cells. - ContentWindows Sample (C++): This sample illustrates a tree control with cells containing Flash, Windows Media Player, Internet Explorer and a dialog. - ContextMenu Sample (C++): This sample illustrates context menus, sort indicators and dropdown/filter buttons. - DragDrop Sample (C++): This sample illustrates drag & drop within and between tree controls. - OLEDrag Sample (C++): This sample illustrates drag & drop (using OLE mechanisms) within a tree control and with Windows Explorer. - OwnerDraw Sample (C++): This sample illustrates owner-draw cells and column headers. - TreeImages Sample (C++): This sample illustrates various image types, progress bars, checkbox and radio button manipulation. - Speed Sample (C++): This sample tests the performance when adding and deleting many items. - TreeView Sample (C++): Sample classes to use CSftTree and CSftTreeSplit in a view in the same manner as MFC's CTreeView class. - Virtual Sample (C++): This sample illustrates a tree control in virtual mode, used to display a list with 1 million items. - SftTree/DLL Wizard: During the installation of SftTree/DLL, an icon for the application "Wizard" is installed in the program group SftTree DLL 8.0. - ClassInfo - Class Information: Based on the information entered on this page, the generated source code is adjusted to reflect the following settings: - Events - Event Viewer: All notifications generated by the tree control are displayed as they occur. - Values - API Return Values: This page displays the most commonly used API return values. - C, C++/MFC - Generated Sample Code: The sample source code generated using the C or C++/MFC tabs can be used to implement a tree control in an application. - Distributing the Dlls: Distributing the Dlls included with SftTree/DLL is only possible in accordance with the license agreement. - Technical Support: New major versions and product maintenance are available with an active support subscription.