void CPaintORamaDlg::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
// Draw if m_isDrawing and on canvas and
//the left-mouse button is pressed
if(m_IsDrawing && (nFlags & MK_LBUTTON) && m_Canvas.PtInRect(point))
{
CClientDC dc(this); //get a dc
dc.MoveTo(m_LineStart); //move to the start of line
dc.LineTo(point); //draw to current position
m_LineStart=point; //update currentmouse position
} //CDialog::OnMouseMove(nFlags, point);
}
中的if语句错误,请问是什么原因,怎么改
G:\MyProjects\PaintORama\PaintORamaDlg.cpp(160) : error C2676: binary '&&' : 'class CPoint' does not define this operator or a conversion to a type acceptable to the predefined operator
Error executing cl.exe.
{
// TODO: Add your message handler code here and/or call default
// Draw if m_isDrawing and on canvas and
//the left-mouse button is pressed
if(m_IsDrawing && (nFlags & MK_LBUTTON) && m_Canvas.PtInRect(point))
{
CClientDC dc(this); //get a dc
dc.MoveTo(m_LineStart); //move to the start of line
dc.LineTo(point); //draw to current position
m_LineStart=point; //update currentmouse position
} //CDialog::OnMouseMove(nFlags, point);
}
中的if语句错误,请问是什么原因,怎么改
G:\MyProjects\PaintORama\PaintORamaDlg.cpp(160) : error C2676: binary '&&' : 'class CPoint' does not define this operator or a conversion to a type acceptable to the predefined operator
Error executing cl.exe.
if(m_IsDrawing && (nFlags & MK_LBUTTON) && (m_Canvas.PtInRect(point)))