Partilhar via


CMFCListCtrl::EnableMarkSortedColumn

Marks the sorted columns with a different background color.

void EnableMarkSortedColumn(
   BOOL bMark = TRUE,
   BOOL bRedraw = TRUE 
);

Parameters

  • [in] bMark
    A Boolean parameter that determines whether to enable a different background color.

  • [in] bRedraw
    A Boolean parameter that determines whether to redraw the control immediately.

Remarks

EnableMarkSortedColumn uses the method CDrawingManager::PixelAlpha to calculate what color to use for sorted columns. The color picked is based upon the regular background color.

Requirements

Header: afxlistctrl.h

See Also

Reference

CMFCListCtrl Class

Hierarchy Chart

CDrawingManager Class