CFont* pFont = new CFont();
pFont->CreateFont(60,0,0,0,550,0,0,0,ANSI_CHARSET,OUT_CHARACTER_PRECIS,CLIP_CHARACTER_PRECIS,0,3,NULL);

cwnd类有一个成员函数SetFont,所以直接调用就可以了。而且这只是修改一个控件的字体,不需要修改回来吧….

Tagged with:
 

One Response to 控件字体修改。

  1. 回到过去 says:

    校友,好像还是我师弟。。

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>