如题所述
添加消息映射void OnLButtonDown(UINT nFlags, CPoint point) ;
在消息响应函数中添加如下代码:
CString str;
str.Format(_T("%d,%d"),point.x,point.y);
AfxMessageBox(_T("鼠标点击的坐标是:"+str);追问
在消息响应函数中添加如下代码:
CString str;
str.Format(_T("%d,%d"),point.x,point.y);
AfxMessageBox(_T("鼠标点击的坐标是:"+str);追问
请问str.Format(_T("%d,%d"),point.x,point.y);
其中的%是用来干什么的
温馨提示:答案为网友推荐,仅供参考