GXFormatText

CString GXFormatText(const CGXStyle& style, LPCTSTR pszValue = NULL, unsigned nValueType = GX_VT_STRING, CGXGridCore* pGrid = NULL, CGXControl* pControl = NULL);

style

Const reference to the style object with formatting information.

pszValue

Points to the value to be formatted. If NULL, CGXStyle::GetValue will be used instead.

nValueType

Specifies the value type: GX_VT_STRING for strings and GX_VT_NUMERIC for numeric values. Note: Only numeric values will be formatted!

pGrid

Pointer to the calling CGXGridCore object. Can be NULL.

pControl

Pointer to the calling CGXControl object. Can be NULL.

Return Value

Returns the formatted text.

Remarks

This method formats a style value as described in CGXSyle::SetFormat.

Only numeric values will be formatted.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the CGXDrawingAndFormatting::ImplementNumberFormatting method from within the control factory class' InitializeApplicationComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method returns the string value without modification. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

 CGXStyle::SetFormat  CGXStyle::SetValueType  CGXDrawingAndFormatting

Macros

 Class Overview |  Class Members