BCGControlBar Pro for MFC
CBCGPHeaderCtrl

Detailed Description

The CBCGPHeaderCtrl class extends the functionality of the MFC CHeaderControl class. It allows to draw the sort arrow on a header controls' item to indicate sorting and provides the multiple sort mode when the items in the parent list control (CBCGPListCtrl) can be sorted by several columns simultaneously.

Inherits CHeaderCtrl.

Public Member Functions

 CBCGPHeaderCtrlConstructs a CBCGPHeaderCtrl object.
 
 EnableMultipleSortEnables or disables multiple sort mode.
 
 GetColumnStateDetermines state of the specified column.
 
 GetColumnTextColorReturns header item foreground color.
 
 GetRowsReturns header control rows number.
 
 GetSortColumnReturns the zero-based index of a column that is sorted.
 
 HasWordBreakTells whether text has word breaks.
 
 IsAscendingTells whether the current sorted column has ascending or descending sort order.
 
 IsColumnTextVertTopAlignTells whether the item content should be aligned on top.
 
 IsMultipleSortDetermines whether the multiple sort is enabled or not.
 
 RemoveSortColumnRemoves the specified sort column from the list of sorted columns.
 
 SetColumnTextColorSpecifies header item foreground color.
 
 SetColumnTextVertTopAlignSpecifies whether the item content should be aligned on top.
 
 SetRowsSpecifies header control rows number.
 
 SetSortColumnSets the current sorted column and its sort order.
 

Public Attributes

 m_bVisualManagerStyleSpecifies whether a control has a Visual Manager style look.
 

Protected Member Functions

 OnDrawItemCalled by the framework when a header control item should be drawn.
 
 OnDrawSortArrowCalled by the framework to draw the sort arrow.
 
 OnFillBackgroundCalled by the framework when the background of a header control item should be filled.