Click here to Skip to main content
11,921,138 members (61,861 online)
Rate this:
Please Sign up or sign in to 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 26-Aug-11 19:32pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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.

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

  Print Answers RSS
0 OriginalGriff 583
1 Dave Kreskowiak 245
2 phil.o 160
3 KrunalRohit 134
4 F-ES Sitecore 130
0 OriginalGriff 6,951
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,171
3 George Jonsson 2,840
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web03 | 2.8.151120.1 | Last Updated 27 Aug 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100