mfc问题在线等
voidCMfc1View::OnLButtonUp(UINTnFlags,CPointpoint){//TODO:Addyourmessagehandlercodehe...
void CMfc1View::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
HDC hdc;
hdc=GetDC(m_hWnd);
MoveToEx(hdc,m_ptorigin.x,m_ptorigin.y,NULL);
LineTo(hdc,point.x,point.y);
ReleaseDC(m_hWnd,hdc);
CView::OnLButtonUp(nFlags, point);
}
F:\mfc\mfc1\mfc1View.cpp(114) : error C2660: 'GetDC' : function does not take 1 parameters
F:\mfc\mfc1\mfc1View.cpp(117) : error C2660: 'ReleaseDC' : function does not take 2 parameters
执行 cl.exe 时出错.
上面这个函数该怎么改啊 展开
{
// TODO: Add your message handler code here and/or call default
HDC hdc;
hdc=GetDC(m_hWnd);
MoveToEx(hdc,m_ptorigin.x,m_ptorigin.y,NULL);
LineTo(hdc,point.x,point.y);
ReleaseDC(m_hWnd,hdc);
CView::OnLButtonUp(nFlags, point);
}
F:\mfc\mfc1\mfc1View.cpp(114) : error C2660: 'GetDC' : function does not take 1 parameters
F:\mfc\mfc1\mfc1View.cpp(117) : error C2660: 'ReleaseDC' : function does not take 2 parameters
执行 cl.exe 时出错.
上面这个函数该怎么改啊 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询