CGXGridCore::ChangeColHeaderStyle

BOOL ChangeColHeaderStyle(const CGXStyle& style, GXModifyType mt = gxOverride, UINT nFlags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);

style

A reference to a style-object which should be applied to the base-style.

mt

Modify-Type: gxOverride, gxApplyNew, gxCopy or gxExclude (see CGXStyle::ChangeStyle).

nFlags

  • Specifies the update technique:

  • GX_UPDATENOW - updates the window immediately

GX_INVALIDATE - invalidates the window

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

Lets you change the column-header-style settings.

The column-header-style is the base-style for all column-headers in the grid. Every column-header-cell in the grid inherits those attributes from the column-header-style which are not explicitly specified in the cell or any other base-styles.

ChangeColHeaderStyle will call ChangeBaseStyle to change the column-header-style. See ChangeBaseStyle for more information.

See Also

 CGXGridCore::ChangeBaseStyle

CGXGridCore

 Class Overview |  Class Members