SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the indentation (in pixels) for item levels.
C
int WINAPI SftTree_GetIndentation(HWND hwndCtl); BOOL WINAPI SftTree_SetIndentation(HWND hwndCtl, int pixels); int WINAPI SftTreeSplit_GetIndentation(HWND hwndCtl); BOOL WINAPI SftTreeSplit_SetIndentation(HWND hwndCtl, int pixels);
C++
int CSftTree::GetIndentation() const; int CSftTree::SetIndentation(int pixels); int CSftTreeSplit::GetIndentation() const; int CSftTreeSplit::SetIndentation(int pixels);
hwndCtl
The window handle of the tree control.
pixels
The indentation (in pixels) for item levels. Valid values are greater or equal to 0. Set to -1 to allow the tree control to determine the best indentation, based on item picture width, font size, etc.
GetIndentation returns the current indentation (in pixels) for each level.
SetIndentation returns TRUE if the function was successful, otherwise FALSE is returned.
The GetIndentation and SetIndentation functions define the indentation (in pixels) for item levels.
Each item is indented the specified number of pixels for each level. The GetItemLevel and SetItemLevel functions define an item's level number.
It is possible to specify a very small value or even 0 for the level indentation. With such a small value, the hierarchy and its components, such as tree lines, expand/collapse buttons may no longer have sufficient space and must be turned off by the application.
The SetItemPictureAlign function can be used to define the alignment of connecting tree lines, cell text and cell pictures.
See Also C/C++ API | Categories | Notifications