添加消息映射void OnLButtonDown(UINT nFlags, CPoint point) ;在消息响应函数中添加如下代码:CString str;str.Format(_T("%d,%d"),point.x,point.y);AfxMessageBox(_T("鼠标点击的坐标是:"+str);