鼠标为什么没有反应 代码在CScrollView类中的WM_SETCURSORSetCursor(AfxGetApp()->LoadCursor(IDC_HAND));结果到了热区却没有变为手形,这是什么原因呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我的代码:BOOL CMpServerView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) { int ret; ret=-1; if(MousePoint.x>0 && MousePoint.y>0) ret=PointToRect(MousePoint,0); if(ret>=0) { SetCursor(AfxGetApp()->LoadCursor(IDC_HAND)); } else { SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW)); } return CScrollView::OnSetCursor(pWnd, nHitTest, message);} 调用 SETCLASSLONG 来设置鼠标。 if(ret>=0) { SetCursor(AfxGetApp()->LoadCursor(IDC_HAND)); AfxMessageBox(""); //看是不是执行了 } MFC CopyFile问题 线程间传数据(从数据采集线程传到处理线程) 关于得到其他程序的句柄仍有一些不明白的地方,请赐教! 新手提问(文件操作)谢谢! 对话框窗口切分,很急! 着急等待解决的问题 SendMessage函数的疑问。 关于用户自定义类的问题 一个比较搞笑得笑话..... :) vc下调制itk问题 解决蓝屏!!!:)特爽!!散分!!!! 哪位大哥大姐帮忙调试一下一个简单的程序(c)啊,表达式计算,我现在手头没有编译器啊!
BOOL CMpServerView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
int ret;
ret=-1;
if(MousePoint.x>0 && MousePoint.y>0)
ret=PointToRect(MousePoint,0);
if(ret>=0)
{
SetCursor(AfxGetApp()->LoadCursor(IDC_HAND));
}
else
{
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
}
return CScrollView::OnSetCursor(pWnd, nHitTest, message);
}
{
SetCursor(AfxGetApp()->LoadCursor(IDC_HAND));
AfxMessageBox(""); //看是不是执行了
}