virtual BOOL SetDefaultColWidth(int nWidth, UINT flags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);
nWidth
Specifies the column-width in pixels.
flags
Specifies the update technique. See UpdateChangedColWidths for more information.
ctCmd
Specifies if the executed command is undone (gxUndo), redone (gxRedo), executed the first time (gxDo) or rolled back (gxRollback).
TRUE if the command has been successfully executed; it is FALSE if the command failed.
Overridable command for specifying the default value for the column-width in pixels.
Note that row-heights and column-widths are stored internally with logical values. Pixel values depend on the zooming-factor and the font-size of the standard-style.
The default column-width is stored with a call to StoreDefaultColWidth. The display is updated with UpdateChangedColWidths.
The command generates a CGXSetDefaultColWidthCmd-object with undo-information.
CGXGridCore::StoreDefaultColWidth CGXGridCore::GetDefaultColWidth CGXGridCore::UpdateChangedColWidths CGXGridCore::LockUpdate
Class Overview | Class Members