C++ 更改字体大小

m_pMyFont_Big = new CFont;
m_pMyFont_Big->CreateFont(60, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_HEAVY, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
OEM_CHARSET, // nCharSet
OUT_DEVICE_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
_T("华文正楷")); // lpszFac

GetDlgItem(IDC_WarningInfo)->SetFont(m_pMyFont_Big);
if (m_pMyFont_Big != NULL)delete m_pMyFont_Big;

你可能感兴趣的:(C++,编程)