Partager via


CMFCListCtrl::SetSortColumn

Sets the current sorted column and the sort order.

void SetSortColumn(
   int iColumn,
   BOOL bAscending = TRUE,
   BOOL bAdd = FALSE 
);

Parameters

  • [in] iColumn
    The column to sort.

  • [in] bAscending
    A Boolean that specifies the sort order.

  • [in] bAdd
    A Boolean that specifies whether the method adds the column indicated by iColumn to the list of sort columns.

Remarks

This method passes the input parameters to the header control by using the method CMFCHeaderCtrl::SetSortColumn.

Requirements

Header: afxlistctrl.h

See Also

Reference

CMFCListCtrl Class

Hierarchy Chart