在OnMouseMove(UINT nFlags, CPoint point) 事件里
CString str; str.Format("鼠标位置x=%d:y=%d",point.x,point.y); SetWindowText(str); //在标题栏显示鼠标坐标 GetDlgItem(IDC_STATIC1)->SetWindowText(str);
posted on 2006-06-24 06:52 路吾 阅读(451) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3