Clipcursor Error
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
hi, Clipcursor is not working in XP. RECT rcClip; // new area for ClipCursor RECT rcOldClip; // previous area for ClipCursor // Record the area in which the cursor can move. GetClipCursor(&rcOldClip); // Get the dimensions of the application's window. GetWindowRect(&rcClip); // Confine the cursor to the application's window. ClipCursor(&rcClip); // Process .................... // Restore the cursor to its previous area. ClipCursor(&rcOldClip); whats wrong ? regards hari Hari Krishnan