BCGSuite for MFC
BOOL CBCGPGridCtrl::SetHeaderAlign ( int  nCol,
int  nAlign 
)

Sets text justification flag for column header item.

Returns
Nonzero if successful; otherwise 0.

Sets a flag to specify text justification of the column header item. The justification applies to the grid column header, but not to the columns of the grid.

nAlign can be one of the following values:

  • HDF_CENTER: the header's contents are centered.
  • HDF_LEFT: the header 's contents are left-aligned.
  • HDF_RIGHT: The header 's contents are right-aligned.
Parameters
nColThe zero-based index of the column
nAlignText justification flag