<< Return to Main Index

< Return to Class Index

CGXWrappedGrid::InsertWGCols

virtual BOOL InsertWGCols(ROWCOL nCol,ROWCOL nCount, int* anWidthArray =NULL,UINT flags = GX_UPDATENOW);

nCol

Specifies the logical column id.

nCount

Specifies the number of columns to be inserted.

anWidthArray

An optional pointer to an array with the column-widths for the inserted columns. If it is NULL, the inserted cells are initialized with the default column-width.

flags

Specifies the update technique.

GX

UPDATENOW specifies to scroll the window contents and call UpdateWindow after invalidating the window.

GX

SMART specifies to scroll the window contents without calling UpdateWindow after the last invalidation.

GX

INVALIDATE simply invalidates the window area right of nCol.

Return Value

TRUE if the command has been successfully executed; it is FALSE if the command failed or if the user aborted the operation.

Remarks

Overridable command-method which inserts columns.

Columns are inserted with StoreInsertWGCols. The display is updated within this function.

No undo information is generated.

See Also

CGXWrappedGrid::StoreInsertWGCols

CGXWrappedGrid

Class Overview | Class Members