CGXGridCore::ChangeStandardStyle
BOOL ChangeStandardStyle(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 standard-style settings.
ChangeStandardStyle will call ChangeBaseStyle to change the standard-style. See ChangeBaseStyle for more information.
Example
This example illustrates how to change the default font in your grid:
// Change default font's size and facename but leave all other
// font settings unchanged.
ChangeStandardStyle( CGXStyle( )
.SetFont(CGXFont( ).SetSize(9).SetFaceName(_T("Arial")))
);