Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to double the pixel size of a window, and only that window, that draws to the screen using GDI?

share|improve this question
What do you mean by "double pixel size"? enlarge to 2x the size? – wizlog Nov 7 '11 at 17:40
After extensive research, this can't be done. You might want to try using a magnifier for a specific window, but apart from that... – wizlog Nov 8 '11 at 2:23
@wizlog It can be done, it would just require me to get off of my lazy ass and code a DLL that hooks the drawing, window creation, and mouse position get functions and double everything. – Avery3R Nov 9 '11 at 0:35
If the software isn't readily available, you should of mentioned that, and offered more than a bounty of just 50 rep. – wizlog Nov 9 '11 at 1:47
@wizlog I wasn't sure whether or not it was avaliable, and 50 was the max rep I put on a bounty. – Avery3R Nov 9 '11 at 2:00

Do you mean:

  • Change the DPI of the window? The answer is no.
  • Change the dimensions of the window? The answer is yes via GetWindowPos/SetWindowPos.
  • Zoom the window? Not unless you're using Direct2D/DirectX (in which case you can use a shader). You have to do this yourself.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.