求教:用代码在对话框中添加的checkbox控件字体大小怎样改变?谢谢先。
解决方案 »
- wince下使用ImageFactory对bmp buffer编码jpg buffer问题
- 为什么有些函数不能inline
- 想写个发帖机器人的程序
- 如何断开和起用本地连接(网络连接里的图标)
- 100急问CreateThread函数的问题
- 如何用程序访问windows共享文件
- oci疑问 ???(记录个数的限制)
- 我该如何使用ATL注册脚本,让其输出%字符
- 窗口重绘,调用OnSize问题!!!
- 新手求助,关于调用office
- 关于数据集合的问题。。我使用ADO的connect对象和recordset对象。现在我已经在一个类里面定义一个recordset变量,现在打开他。然后我过段
- 请英语高手帮帮忙!感激不尽!
void SetFont( CFont* pFont, BOOL bRedraw = TRUE );ParameterspFontSpecifies the new font.bRedrawIf TRUE, redraw the CWnd object.ResSets the window’s current font to the specified font. If bRedraw is TRUE, the window will also be redrawn.
VERIFY(m_font.CreateFont(
12, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_NORMAL, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
"Arial")); // lpszFacenameCFont *pOldFont=m_pCheckBox->SetFont(&m_font);
SetFont
CFont m_font;
VERIFY(m_font.CreateFont(
12, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_NORMAL, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
"Arial")); // lpszFacename m_pCheck=new CButton();
m_pCheck->Create(text,BS_AUTOCHECKBOX|WS_TABSTOP|WS_VISIBLE,
CRect(20,80,100,100),this,1201);
((CButton *)GetDlgItem(1201))->SetFont(&m_font,TRUE);
创建好字体后,CreateFont()
就用SetFont()