   D3D9, Win32 window size and mouse input question
  Hi,I have a game app using D3D9. Everything has been fine until I started using a second monitor on my pc. I noticed that when using the mouse to aim in the game, the cusor must have been moving off the first monitor onto the second, meaning that any click to fire i made when the cursor was on monitor 2 would make windows think I was clicking on the desktop, and would minimise the game.Easily fixed that, by running SetCursorPos to reset the cursor to the middle of the screen every few ms or so.but I noticed it was only working ingame, not in the menus.I didn't write the original windows handling code, so I never really noticed it, but I noticed this was happening:The game menus are always at 640x480 resolution. A resolution can be set for the game but it only takes effect when leaving or re-entering the menu loop. So you can set whatever res you want for the game, and a resolution change will take place every time you leave or go back to the menus.I noticed the win32 side of the code was, on app init, using GetSystemMetrics to get my desktop resolution (1280x1024) and then using that resolution to create a 1280x1024 window. D3D9 was then coming along and creating a 640x480 "screen" using this window.So what I imagine was happening with my mouse input was, that because the window size and the d3d9 back buffer size didn't match, the mouse was still going "out of bounds" as such and registering desktop clicks. It doesn't quite make sense to me so perhaps i'm thinking down the wrong path with that..to cut a long story short..and to actually ask some questions.. using win32 mouse input (raw input), is it expected that you have to:1: constantly call SetCursorPos while in d3d9 fullscreen mode to keep the cursor on one monitor (so clicks on second desktop dont register)2: change the resolution of the actual win32 window each time you do a d3d9 reset for d3d9 resolution change3: If i do need to change win32 window size on d3d9 reset, can that be a simple win32 function call or do I need to respecify the window style etc?From everything i've read so far about win32 and d3d9, I don't really recall seeing anything on the above (mouse handling with multi monitors etc)Any help would be appreciated, ta!   
  YES to #1 and #2.For #3, IIRC you use the Win32 SetWindowPos function, maybe with a NOMOVE flag or something like that.   ;  Thanks, it's all working great now!   