新人求教问题 求大神解答!!
mfc吧
全部回复
仅看楼主
level 3
伱人海洋 楼主
LOGFONT lf;
CFont *font=GetEditCtrl().GetFont();
if(font==NULL)
{
font=new CFont;
font->CreatePointFont(200,"Cooper Black");
font->GetLogFont(&lf);
delete font;
}
else
{
font->GetLogFont(&lf);
}
CFontDialog fdlg(&lf);
if(fdlg.DoModal()==IDOK)
{
m_Font.DeleteObject();
m_Font.CreateFontIndirect(&lf);
SetFont(&m_Font);
}
error C2065: 'GetEditCtrl' : undeclared identifier
: error C2228: left of '.GetFont' must have class/struct/union type
怎么解决啊!!
2015年11月18日 04点11分 1
level 3
伱人海洋 楼主
[委屈]
2015年11月18日 05点11分 2
level 6
把编辑框关联一个成员变量,类型为控件,然后用这个变量来调用Get...
2015年11月19日 05点11分 3
1