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 sort information for the specified columns.
C
BOOL WINAPI SftTree_GetSortIndicator(HWND hwndCtl, int realCol, int* sortStyle); BOOL WINAPI SftTree_SetSortIndicator(HWND hwndCtl, int realCol, int sortStyle); BOOL WINAPI SftTreeSplit_GetSortIndicator(HWND hwndCtl, int realCol, int* sortStyle); BOOL WINAPI SftTreeSplit_SetSortIndicator(HWND hwndCtl, int realCol, int sortStyle);
C++
void CSftTree::GetSortIndicator(int realCol, int* sortStyle) const; void CSftTree::SetSortIndicator(int realCol, int sortStyle); void CSftTreeSplit::GetSortIndicator(int realCol, int* sortStyle) const; void CSftTreeSplit::SetSortIndicator(int realCol, int sortStyle);
hwndCtl
The window handle of the tree control.
realCol
The real column number for which the sort style is returned.
sortStyle
A pointer to a field where the sort style of the specified column realCol is returned (GetSortIndicator) or the new sort style to be defined for the specified column (SetSortIndicator).
Value | Description |
---|---|
SFTTREE_SORT_NONE | There is no sort indicator for the specified column realCol. |
SFTTREE_SORT_ASC | The sort indicator is shown as "ascending sort". |
SFTTREE_SORT_DESC | The sort indicator is shown as "descending sort". |
The return value is TRUE if the function was successful, otherwise FALSE is returned.
The SortIndicator function defines the sort information for the specified column realCol.
Only one column can be sorted ascending or descending at a time using the built-in sort handling using EnableSortIndicators with fAuto set to TRUE. If the application explicitly defines sort indicators using the SortIndicator function, multiple columns can have sort indicators. The ResetSortIndicator function can be used to clear all columns' sort indicators.
The EnableSortIndicators function is used to enable sort indicators in column headers.
See Also C/C++ API | Categories | Notifications