CGXGridCore::SetDefaultRowHeight

virtual BOOL SetDefaultRowHeight(int nHeight, UINT flags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);

nHeight

Specifies the row-height in pixels.

flags

Specifies the update technique. See UpdateChangedRowHeights for more information.

ctCmd

Specifies if the executed command is undone (gxUndo), redone (gxRedo), executed the first time (gxDo) or rolled back (gxRollback).

Return Value

TRUE if the command has been successfully executed; it is FALSE if the command failed.

Remarks

Overridable command for specifying the default value for the row-height in pixels.

Note that row-heights and row-heights are stored internally with logical values. Pixel values depend on the zooming-factor and the font-size of the standard-style.

The default row-height is stored with a call to StoreDefaultRowHeight. The display is updated with UpdateChangedRowHeights.

The command generates a CGXSetDefaultRowHeightCmd-object with undo-information.

See Also

 CGXGridCore::StoreDefaultRowHeight  CGXGridCore::GetDefaultRowHeight  CGXGridCore::UpdateChangedRowHeights  CGXGridCore::LockUpdate

CGXGridCore

 Class Overview |  Class Members