BCGControlBar Pro for MFC
int CBCGPHeaderCtrl::GetSortColumn ( ) const

Returns the zero-based index of a column that is sorted.

Returns
A zero-based index of a sorted column.

Call this member function to retrieve the index of sorted column. The sorted column can be set by SetSortColumn(). The header control item for the sorted column should display the sort arrow.

Use GetColumnState() instead if the header control is working in multiple sort mode.