BCGSuite for MFC
BOOL CBCGPGridColumnsInfoEx::AddHeaderItem ( const CArray< int, int > *  pCols,
const CArray< int, int > *  pLines = NULL,
int  nColumn = 0,
LPCTSTR  lpszLabel = NULL,
int  nAlign = HDF_LEFT,
int  iImage = -1 
)

Adds a new header item for the layout.

Use this method to construct header layout.

nAlign can be one of the following values:

  • HDF_LEFT
  • HDF_RIGHT
  • HDF_CENTER
Parameters
pColsArray of zero-based indexes of the columns; If NULL or list is empty - all columns will be merged into one header item.
pLinesArray of zero-based indexes of the header lines; If NULL or list is empty - all header lines will be merged into one header item.
nColumnZero-based index of a column, which is associated with a merged header item. If -1, then a header item is not associated with a column.
lpszLabelText label of the header item.
nAlignHorizontal alignment of a header item.
iImageIndex for an image from an image list, -1 specifies no image.