At the risk of sounding completely out of touch with things, I'm working on windowed game (not full screen) using DirectX7 and C++.
One thing that I had left for quite some time is this issue I have where the graphics that I'm using appear too small on higher resolution screens. So I did some work to allow the window to be sized and to stretch the image to whatever size the user wants and everything worked out fine except for the buttons I have as part of the UI.
Currently, the button is placed onto the main surface I'm working on and then that surface is stretched to the window size. The button stretches with the image but I don't know how to update the co-ordinates I have in the background to recognize if the mouse is on the button and clicking it.
Thanks , it helped knowing that was the right direction to go. It was a ridiculously simple thing that got muddled up between the offsets that I've been using and not thinking clearly about which way the ratio should go. Problem solved.