RECT rect;//将光标定义在视图区内 m_pView->GetWindowRect(&rect); ClipCursor(&rect); //ClipCursor(NULL);解除锁定
RECT rect;//将光标定义在视图区内 m_pView->GetWindowRect(&rect); ClipCursor(&rect); //ClipCursorNULL); 解除锁定
RECT rect;//将光标定义在视图区内 m_pView->GetWindowRect(&rect); ClipCursor(&rect); //ClipCursorNULL); 解除锁定
RECT rect;//将光标定义在视图区内 m_pView->GetWindowRect(&rect); ClipCursor(&rect); //ClipCursor(NULL);//解除锁定
怎么会有这么变态的需求啊... 天下大乱,,, 随时测试鼠标的屏幕位置,如果发现它跑出范围就用 BOOL SetCursorPos( int X, // horizontal position int Y // vertical position ); 把它抓回来. WM_MOUSEMOVE中的鼠标位置信息... lParam的低位WORD记着鼠标的X坐标,高位WORD记着鼠标的Y坐标.
m_pView->GetWindowRect(&rect);
ClipCursor(&rect);
//ClipCursor(NULL);解除锁定
m_pView->GetWindowRect(&rect);
ClipCursor(&rect);
//ClipCursorNULL); 解除锁定
m_pView->GetWindowRect(&rect);
ClipCursor(&rect);
//ClipCursorNULL); 解除锁定
m_pView->GetWindowRect(&rect);
ClipCursor(&rect);
//ClipCursor(NULL);//解除锁定
天下大乱,,,
随时测试鼠标的屏幕位置,如果发现它跑出范围就用
BOOL SetCursorPos(
int X, // horizontal position
int Y // vertical position
);
把它抓回来.
WM_MOUSEMOVE中的鼠标位置信息...
lParam的低位WORD记着鼠标的X坐标,高位WORD记着鼠标的Y坐标.