Original Post
Hi, i'm currently making an application with 4 viewports. i'm using the basic windows WM_MOUSEMOVE to get the position of the cursor and updating values stored elsewhere so when the WM_LBUTTONDOWN is recieved i know where the click was. I can then test if this position is > height/2 or width/2 to see which viewport was clicked on. This has been working fine untill i realised that if the window is moved, the click no longer relates to the correct place in the clients area. Therefore the wrong viewports are being selected. Does anyone know how i might get around it so it workes when after its moved? or know where i'm going wrong? Sorry this is probably something really simple that i've missed but please help... Thanks Rich