Now i am developing a app using MFC, it is look like a simple game. In that i am using a Joystick. so i have not required mouse. so I want to block all the mouse operations. how can i do.
Thanks in advance
Printable View
Now i am developing a app using MFC, it is look like a simple game. In that i am using a Joystick. so i have not required mouse. so I want to block all the mouse operations. how can i do.
Thanks in advance
Just unplug the mouse! :D
Change the mouse cursor to a empty cursor so it becomes invisible, and use SetCapture/ReleaseCapture to redirect all the clicks to your window and simply ignore the clicks.
You could also use ClipCursor to confine the cursor to a small or 0 sized rectangle.
Thank you Mr Skizmo. But i am confusing, redirction is the correct way or any other way is there to completely stop the mouse event.