关于MFC AppWizard应用程序向导编写一个简单的绘图程序??
关于释放鼠标左键的程序代码有问题,编译出现错误,请大家帮忙看看!voidCSDILineView::OnLButtonUp(UINTnFlags,CPointpoint)...
关于释放鼠标左键的程序代码有问题,编译出现错误,请大家帮忙看看!void CSDILineView::OnLButtonUp(UINT nFlags, CPoint point) //释放鼠标左键
{
// TODO: Add your message handler code here and/or call default
if(m_bDragging)
{
m_bDragging=false; //清拖曳标记
Release Capture(); // 释放鼠标,还原鼠标形状
}
CView::OnLButtonUp(nFlags, point);
}
错误:--------------------Configuration: SDILine - Win32 Debug--------------------
Compiling...
SDILineView.cpp
D:\C++\SDILine\SDILineView.cpp(115) : error C2065: 'Release' : undeclared identifier
D:\C++\SDILine\SDILineView.cpp(115) : error C2146: syntax error : missing ';' before identifier 'Capture'
D:\C++\SDILine\SDILineView.cpp(115) : error C2065: 'Capture' : undeclared identifier
执行 cl.exe 时出错.
SDILineView.obj - 1 error(s), 0 warning(s) 展开
{
// TODO: Add your message handler code here and/or call default
if(m_bDragging)
{
m_bDragging=false; //清拖曳标记
Release Capture(); // 释放鼠标,还原鼠标形状
}
CView::OnLButtonUp(nFlags, point);
}
错误:--------------------Configuration: SDILine - Win32 Debug--------------------
Compiling...
SDILineView.cpp
D:\C++\SDILine\SDILineView.cpp(115) : error C2065: 'Release' : undeclared identifier
D:\C++\SDILine\SDILineView.cpp(115) : error C2146: syntax error : missing ';' before identifier 'Capture'
D:\C++\SDILine\SDILineView.cpp(115) : error C2065: 'Capture' : undeclared identifier
执行 cl.exe 时出错.
SDILineView.obj - 1 error(s), 0 warning(s) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询