64,647
社区成员
发帖
与我相关
我的任务
分享
CRect rect;
CWnd* pwnd=GetDlgItem(IDC_PIC);//IDC_PIC是picture控件的ID
pwnd->GetClientRect(&rect);
CDC* pdc=pwnd->GetDC();
pdc->SetViewportOrg(239,398);
pdc->MoveTo(x[0],y[0]);
for(int i=1;i<iCount;i++)
{
pdc->LineTo(x[i], y[i]);
pdc->MoveTo(x[i], y[i]);
}
ReleaseDC(pdc);
最终结果是什么曲线也没有