<< Return to Main Index

< Return to Class Index

CGXStyle::ChangeStyle

virtual void ChangeStyle(const CGXStyle& p, GXModifyType mt);

p

Reference to source style object.

mt

gxExclude for resetting attributes.

Remarks

Applies a new style on the current style.

The following operations are supported:

·Applying only new attributes (gxApplyNew): Only those attributes are copied from the source style to the destination style which are included in the source style and not yet included in the destination style.

·Overriding attributes (gxOverride): Those attributes are copied from the source style to the destination style which are included in the source style no matter if they are included in the destination style.

·Copying the style (gxCopy): All attributes are copied from the source style to the destination style. Attributes which are not included in the source style will be removed from the destination style.

·Resetting attributes (gxExclude): Attributes which are included in the source style will be removed from the destination style.

See Also

CGXStyle::operator=

CGXStyle

Class Overview | Class Members