请教,在一个对话框中使用picture控件属性为rectangle,如何在picture中绘制函数图像比如y=2*x*x
在事件中加入如下代码:
void CGraphDlg::OnDrawBtn()
{
// TODO: Add your control notification handler code here
CWnd* graphFrame = (CWnd*)GetDlgItem(IDC_GRAPH_FRAME);
CDC* pDC = graphFrame->GetDC();
pDC->MoveTo(2,3);
pDC->LineTo(6,7);
}
为什么出现错误
我是刚入门的菜鸟,谢谢诸位高手