SSM_AFTERUSERSORT Message
Applies To
fpSpread control
Description
Sent to the owner of the Spread control when one of the following occurs:
- The user clicks a column header
- The SSSetColUserSortIndicator function's nColUserSortIndicator parameter is set to either 1 (SS_COLUSERSORTINDICATOR_ASCENDING) or 2 (SS_COLUSERSORTINDICATOR_DESCENDING) for a column
and the SSSetUserColAction function's nUserColAction parameter is set to either 1 (SS_USERCOLACTION_SORT) or 2 (SS_USERCOLACTION_SORTNOINDICATOR) and the data is sorted.
Parameters
The following parameters are available:
Parameter | Description |
---|---|
wParam | Spread control ID |
lParam | Column on which sort occurred |
Remarks
If you set the SSSetUserColAction function's nUserColAction parameter to 1 (SS_USERCOLACTION_SORT) or 2 (SS_USERCOLACTION_SORTNOINDICATOR) and the user clicks the column header, the column is sorted in either ascending or descending order and the SSM_BEFOREUSERSORT and SSM_AFTERUSERSORT messages occur.
If the SSSetColUserSortIndicator function's nColUserSortIndicator parameter is set to 3 (SS_COLUSERSORTINDCATOR_DISABLED) or if the SSSetUserColAction function's nUserColAction parameter is set to 0 (SS_USERCOLACTION_DEFAULT), this message will not be sent.
Return Value
None
See Also
SSSetColUserSortIndicator, SSSetUserColAction functions
SSM_BEFOREUSERSORT message