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
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
怎么解决啊!!