在OnMouseMove(UINT nFlags, CPoint point) 事件里 

   CString str;
    str.Format("鼠标位置x=%d:y=%d",point.x,point.y);
    SetWindowText(str);    //在标题栏显示鼠标坐标
    GetDlgItem(IDC_STATIC1)->SetWindowText(str);

相关文章:

  • 2021-11-19
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2021-06-14
  • 2022-12-23
  • 2021-09-15
  • 2021-08-24
  • 2022-12-23
  • 2021-07-14
相关资源
相似解决方案