请问下,我要设置字体代码如下,虽然能实现,但是报错,是怎么回事?谢谢回答
我要设置一个tab页的标签的字体,代码如下
CFont* pFont = GetFont();
pFont->CreateFont( -20, 0, 0, 0, 700, 0, 0, 0, 0, 0, 0, 0, 0, _T("宋体") );
m_myTabCtrl.SetFont(pFont);
请问下,我这样设置字体的大小对吗?谢谢回答。我的能修改成功,但是报错,不过可以忽略,错误如下
debug assertion failed!
file:wingdi.cpp
line:1120
for information on how your program can cause an assertion
failure ,see the visual C++ documentation on asserts.
(press retry to debug the application)
谢谢回答