int CBCGPGridCtrl::InsertColumn | ( | int | nPos, |
LPCTSTR | lpszColumn, | ||
int | nWidth, | ||
int | iImage = -1 , |
||
BOOL | bHideNameWithImage = TRUE |
||
) |
Inserts the new column into a grid control at the specified index.
nPos | The zero-based index of the column to be inserted. |
lpszColumn | The name of the column. |
nWidth | The width of the column in pixels |
iImage | Specifies the image to be displayed with this column at the header control. Zero-based index of an image within the image list or -1, if not used. You should assign the image list to the header control. |
bHideNameWithImage | Specified whether hide the column name when image is specified. |
Call this function to insert the new column into the grid control at the specified index. You can specify the name of column, its default width and, optionally, an image to be displayed on the header control.
You should assign an image list to the header control in order to display the image (GetHeaderCtrl().SetImageList (...)).