BCGControlBar Pro for MFC
BOOL CBCGPGridCtrl::SetColumnAlign ( int  nCol,
int  nAlign 
)

Sets alignment of the column text.

Returns
Nonzero if successful; otherwise 0.

Sets one of the flags to specify text justification of the specified column in a grid control. The justification applies to the grid header.

nAlign can be one of the following values:

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