在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 路吾 阅读(446) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 路吾 Powered by .NET 9.0 on Kubernetes