I have a number of applications that I can’t change (no source), they are hardcoded to paint at 0,0. Usually this is not a problem, but a new project (kiosk) has appeared in which I need to draw a border guard outside of these applications. I am looking for a way to change the display range:
X: 0 to 1200 Y: 0 to 900
to something like:
X: -100 to 1100 Y: -100 to 800
I saw a couple of functions on MSDN, such as SetViewportExtEx, SetWorldTransform, that meet the needs, but if I understand them correctly, they do not change the system change. They are for the current process only.
I program in C ++, but if there are settings in the registry / control panel / etc that will also work.
Has anyone else done something like this before?
Edit 1: Window position hardcoded to 0.0
source share