Vladimir Milyaev
April 8th, 1999, 08:31 AM
Hi!
I have code:
CFont Font;
if( Font.CreateFont( 20, //int nHeight,
30, //int nWidth,
0, //int nEscapement,
0, //int nOrientation,
0, //int nWeight,
1, //BYTE bItalic,
0, //BYTE bUnderline,
0, //BYTE cStrikeOut,
1, // BYTE nCharSet,
OUT_DEFAULT_PRECIS, //BYTE nOutPrecision,
CLIP_DEFAULT_PRECIS, //BYTE nClipPrecision,
DEFAULT_QUALITY, //BYTE nQuality,
VARIABLE_PITCH | TMPF_TRUETYPE, //BYTE nPitchAndFamily,
"Arial" //LPCTSTR lpszFacename
))
m_Table.SetFont( &Font, true );
This code does not change font (and size). What is wrong?
I know it is simple. Help, please.
Best regards, Bob.
I have code:
CFont Font;
if( Font.CreateFont( 20, //int nHeight,
30, //int nWidth,
0, //int nEscapement,
0, //int nOrientation,
0, //int nWeight,
1, //BYTE bItalic,
0, //BYTE bUnderline,
0, //BYTE cStrikeOut,
1, // BYTE nCharSet,
OUT_DEFAULT_PRECIS, //BYTE nOutPrecision,
CLIP_DEFAULT_PRECIS, //BYTE nClipPrecision,
DEFAULT_QUALITY, //BYTE nQuality,
VARIABLE_PITCH | TMPF_TRUETYPE, //BYTE nPitchAndFamily,
"Arial" //LPCTSTR lpszFacename
))
m_Table.SetFont( &Font, true );
This code does not change font (and size). What is wrong?
I know it is simple. Help, please.
Best regards, Bob.