C++裡用什麼函式獲取滑鼠位置

  • 作者:由 匿名使用者 發表于 攝影
  • 2022-09-25

C++裡用什麼函式獲取滑鼠位置匿名使用者2014.04.19 回答

OnMouseMove的後一個引數就是滑鼠的當前位置

void CTest1View::OnMouseMove(UINT nFlags, CPoint point)

{

// TODO: Add your message handler code here and/or call default

CView::OnMouseMove(nFlags, point);

CPoint MousePosition = point;

}

Top