void CMyView::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CString str;
str.Format("鼠标位置为:%04d,%04d",point.x,point.y);
CClientDC dc(this);
dc.TextOut(0,0,str);
CView::OnMouseMove(nFlags, point);
}
简单的鼠标消息响应
最新推荐文章于 2024-05-17 11:30:13 发布