BOOL SetWGColWidth(ROWCOL nFromCol, ROWCOL nToCol, int nWidth, int* anWidthArray = NULL, UINT flags =GX_UPDATENOW, GXCmdType ctCmd =gxDo);
nFromCol
Specifies the first logical column id.
nToCol
Specifies the last logical column id.
nWidth
Specifies the width in pixels for all columns.
anWidthArray
An optional pointer to an array with the column-widths for the specified cells. If it is NULL, nWidth is used for all cells.
flags
Specifies the update technique.
ctCmd
Specifies if the executed command is undone (gxUndo), redone (gxRedo), executed the first time (gxDo) or rolled back (gxRollback).
TRUE if the command was successful; FALSE if it failed.
Overridable command for specifying the column-widths for specific logical columns in pixels.
Columns widths are stored with a call to StoreWGColWidth for each column. The display is updated within this function. The ctCmd parameter is not handled in the current version.
No undo information is generated for this command.
If nWidth is greater than 0 and anWidthArray is not NULL, the command fails with an assertion.
CGXWrappedGrid::StoreWGColWidth
Class Overview | Class Members