#include <ChartFont.h>
Public Member Functions | |
CChartFont (const CChartFont ©) | |
Copy constructor. | |
CChartFont (const TChartString &strFaceName, int iPointSize) | |
Constructor. | |
CChartFont () | |
Default constructor. | |
~CChartFont () | |
Destructor. | |
void | SetFont (const TChartString &strFaceName, int iPointSize, bool bItalic=false, bool bBold=false, bool bUnderline=false) |
Sets the font with extended properties. | |
void | SelectFont (CDC *pDC) const |
Select this font in the device context passed in argument. | |
void | UnselectFont (CDC *pDC) const |
Reset the font to its original in the device context. | |
void | SetVertical (bool bVertical) |
Sets the text in vertical mode. | |
void | operator= (const CChartFont &objectSrc) |
Assignement operator. |
CChartFont::CChartFont | ( | const TChartString & | strFaceName, | |
int | iPointSize | |||
) |
Constructor.
strFaceName | The font face name | |
iPointSize | The font point size |
CChartFont::CChartFont | ( | ) |
Default constructor.
Construct a font with the "Microsoft Sans Serif" face name and with a point size of 100.
void CChartFont::SelectFont | ( | CDC * | pDC | ) | const |
Select this font in the device context passed in argument.
This function stores the current font selected in the DC to set it back when calling UnselectFont. This function is mainly used internally.
void CChartFont::SetFont | ( | const TChartString & | strFaceName, | |
int | iPointSize, | |||
bool | bItalic = false , |
|||
bool | bBold = false , |
|||
bool | bUnderline = false | |||
) |
Sets the font with extended properties.
strFaceName | The font face name | |
iPointSize | The font point size | |
bItalic | Specifies if the text is in italic | |
bBold | Specifies if the text is in bold | |
bUnderline | Specifies if the text is underlined |
void CChartFont::SetVertical | ( | bool | bVertical | ) |
Sets the text in vertical mode.
This function is mainly used internally.