发布时间:2018-06-30编辑:佚名阅读(1712)
//设置鼠标位置 void SetPosition(POINT point) { ScreenToClient(m_hWnd,&point); SetCursorPos(point.x,point.y); } //获取鼠标位置 void GetPosition(POINT& point) { GetCursorPos(&point); ScreenToClient(m_hWnd,&point); }
关键字:DirectInput鼠标坐标转换
上一篇:无法从“void (__thiscall CChessBoard::* )(WPARAM,LPARAM)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)”
下一篇:C++隐藏和显示光标
0人
Copyright © 2018 我的空间 闽ICP备17023514号-2