| 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:
| pCols | Array of zero-based indexes of the columns; If NULL or list is empty - all columns will be merged into one header item. |
| pLines | Array of zero-based indexes of the header lines; If NULL or list is empty - all header lines will be merged into one header item. |
| nColumn | Zero-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. |
| lpszLabel | Text label of the header item. |
| nAlign | Horizontal alignment of a header item. |
| iImage | Index for an image from an image list, -1 specifies no image. |