首页上一页 1 下一页尾页 2 条记录 1/1页
求救啊……
发表在C语言图书答疑
2008-11-15
是否精华
是
否
版块置顶:
是
否
void CAboutDlg::OnOK()
{
CFont font;
font.CreatePointFont(200,"宋体");
GetDlgltem(IDC_STATIC)->SetWindowText("Hello Visual C++");
GetDlgltem(IDC_STATIC)->SetFont(&font);
CDialog::OnOK();
}
请问这个语句哪里有错
E:\C++\65465\65465.cpp(174) : error C2065: 'GetDlgltem' : undeclared identifier
E:\C++\65465\65465.cpp(174) : error C2227: left of '->SetWindowTextA' must point to class/struct/union
E:\C++\65465\65465.cpp(175) : error C2227: left of '->SetFont' must point to class/struct/union
执行 cl.exe 时出错.
65465.exe - 1 error(s), 0 warning(s)
{
CFont font;
font.CreatePointFont(200,"宋体");
GetDlgltem(IDC_STATIC)->SetWindowText("Hello Visual C++");
GetDlgltem(IDC_STATIC)->SetFont(&font);
CDialog::OnOK();
}
请问这个语句哪里有错
E:\C++\65465\65465.cpp(174) : error C2065: 'GetDlgltem' : undeclared identifier
E:\C++\65465\65465.cpp(174) : error C2227: left of '->SetWindowTextA' must point to class/struct/union
E:\C++\65465\65465.cpp(175) : error C2227: left of '->SetFont' must point to class/struct/union
执行 cl.exe 时出错.
65465.exe - 1 error(s), 0 warning(s)