Problem with mouseinput

i read mouseinput via windows messagesystem, but if i reach the screenedge no more messages are produced, and if i set mouse to the center everytime i get a message( produces a loop in the message system = bad), mouse position is everytime the same. How do i fix this or do i should read mouseinputs from elsewhere ???

If the mouse have changed so store the changes and reset the mouse to the center. A example of this is NeHe tutorial 23 but I am not sure if I understand the problem right.