Are you trying to use the mouse as a reticule for an FPS?
No, the user can move the mouse over the screen, if it gets near the borders, the camera moves. if he presses the middle mouse button, the mouse should stay where it was and rotate the camera.
If you want it visible but not able to move, just make it invisible, and render your own graphic where you want the mouse to be.
trying this!