那是不是必须要申请控件变量和各控件建立联系?还有其他办法吗?
CWnd *pWnd;
CRect rect;
pWnd = GetDlgItem(IDC_STATIC_Par);
pWnd->GetWindowRect(rect);
ScreenToClient(rect);
pWnd->MoveWindow(cx+10,cy-10-rect.Height,rect.Width,rect.Height); ----------出错在这一行!
错误报告:error C2297: '-' : illegal, right operand has type 'int (__thiscall CRect::*)(void) const'
Error executing cl.exe.
错在哪里?