Original Post
I''m working on a graphic effect program in which sometimes I track the mouse by hiding the cursor, putting it in the center of the window, and every frame getting the x and y deltas and putting it back in the center. When I stop tracking the mouse, I set its position to where it was before I started tracking (which was stored) and then show it *in that order*.
Sometimes, despite the fact that I position it before I show it, it appears for a split second in the middle of the window before it goes to where I''ve set its position.
I know this doesn''t matter all that much, but it''s one of those annoying little things that bug programmers.. It''s weird because logically it seems that if I make the SetCursorPos() call before the ShowCursor() call, when it appears it should appear in its new position, but sometimes (often) it doesn''t.
Is there something I have to do to ensure that the cursor gets positioned before it gets shown (since making the calls in that order doesn''t seem to work)?
Thanks!