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 current horizontal offset (in pixels) of the displayed area.
C
int WINAPI SftTree_GetHorizontalOffset(HWND hwndCtl); BOOL WINAPI SftTree_SetHorizontalOffset(HWND hwndCtl, int offset); int WINAPI SftTreeSplit_GetHorizontalOffset(HWND hwndCtl, BOOL fLeft); BOOL WINAPI SftTreeSplit_SetHorizontalOffset(HWND hwndCtl, int offset, BOOL fLeft);
C++
int CSftTree::GetHorizontalOffset() const; int CSftTree::SetHorizontalOffset(int offset); int CSftTreeSplit::GetHorizontalOffset(BOOL fLeft = FALSE) const; int CSftTreeSplit::SetHorizontalOffset(int offset, BOOL fLeft = FALSE);
hwndCtl
The window handle of the tree control.
offset
The new offset (in pixels) of the displayed area. If this parameter is greater than the displayable area width, the value is adjusted to scroll to the rightmost position possible.
fLeft
Set to TRUE to return or set the horizontal offset of the left side of a split tree control (the portion of the tree control containing the hierarchy). If FALSE is specified, the horizontal offset of the right side is returned or set.
GetHorizontalOffset returns the current offset (in pixels) of the displayed portion of the tree control.
SetHorizontalOffset returns TRUE if the function was successful, otherwise FALSE is returned.
The GetHorizontalOffset and SetHorizontalOffset functions define the current horizontal offset (in pixels) of the displayed area.
A tree control's displayable area can be wider than the tree control's window width. If the displayable area is wider, the tree control can be scrolled horizontally if it has a horizontal scroll bar (WS_HSCROLL window style). The current offset determines the amount of horizontal scrolling. The current offset of the displayed area can be set by the application using SetHorizontalOffset.
A tree control can only be scrolled horizontally if its displayable area is wider than the tree control window.
See Also C/C++ API | Categories | Notifications