BCGControlBar Pro for MFC
int CBCGPHeaderCtrl::GetColumnState ( int  iColumn) const

Determines state of the specified column.

Returns

Specifies the current state of the column:

  • 0 - column is not sorted
  • -1 - the sort order is descending
  • 1 - the sort order is ascending

Call this member function to determine the current sort status of the specified column. Use this function when the multiple sort is enabled.

Parameters
iColumnZero-based index of a column whose status should be returned.