<< Return to Main Index

< Return to Class Index

CGXControl::SelectFont

CFont* SelectFont(CDC* pDC, const CGXStyle& style, const CGXStyle* pStandardStyle);?

pDC

Points to the device context.

style

A reference to composed style-object for the cell.

pStandardStyle

Points to the standard-style of the grid.

Return Value

A pointer to the deselected font-object. You should store this pointer and select it into the device context later.

Remarks

Selects the font for the cell into the device context. If the font is the same as the standard font, no font will be selected into the device context.

See the implementation of any Draw method for the standard controls for an example of this method’s usage.

CGXControl

Class Overview | Class Members