<< Return to Main Index

< Return to Class Index

CGXStyle::GetIncludeUserAttribute

BOOL GetIncludeUserAttribute(WORD nID) const;

nID

A string resource id where the string resource contains the base style name.

Return Value

Returns whether the specified attribute has been marked as initialized. TRUE if user attribute is marked as initialized; FALSE otherwise.

Remarks

When drawing the grid, Objective Grid fills up all uninitialized attributes of the cell’s style object with the base style’s attributes.

If the GetInclude... methods return FALSE, Objective Grid will try to initialize this attribute with the base style’s setting. If GetInclude... methods return TRUE, the specific setting will be used for drawing.

Note: If you want user attributes to appear on the user attribute page of the CGXStyleSheet you can use nID as user-defined attribute, you have to register it with CGXStylesMap::AddUserAttribute. See CGXStylesMap for instruction on how to do this.

See Also

CGXStyle::SetIncludeUserAttribute CGXStyle::GetUserAttribute CGXStyle::SetUserAttribute CGXStylesMap::AddUserAttribute CGXAbstractUserAttribute

CGXStyle

Class Overview | Class Members