Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Is it possible to create a program to host a 32bit app using a screen resolution of 800x600 without actually changing the Windows desktop settings?

For example:

If I have a program that is maximized and is only taking up about a quarter of the screen with my display settings at 1366x768, the only way to run this program in full screen is to set my resolution to 800x600.

Any suggestions?
Posted

If I understand you correctly, you've a window that doesn't get bigger than 800x600. With a screen resolution of 1366x768 it won't fill up the whole screen. The only way to do that is to set the resolution to 800x600, which causes problems with something else.

While not changing the resolution, I can't see how this solution would avoid the same pitfalls.. How about the screen magnifier found under Accessibility options in control panel? (or by holding the windows key and pressing either + or -, at least on win7 that is - i don't know about earlier versions)


Failing that, I guess you may be able to take a screen-shot of the hosted app, scale and redraw this image in your own full-screen app in front of the hosted app. You'd then have to scale and pass all mouse-movements/keyboard strokes back to the hosted app.
 
Share this answer
 
I dont kown what exactly you mean by full screen, but you can preventing the window becoming resized larger than 800x600. You only must handle the window message WM_GETMINMAXINFO.
Regards.
 
Share this answer
 
Although I have never tried it, I would think that a virtual machine (VMWare, Virtual PC...) would be the solution for thus problem. Simply set the resolution of the guess OS to 800x600 and start your application in that virtual machine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900