托管需要以800x600分辨率运行的程序 [英] Hosting a program that needs to run in 800x600 resolution

查看:108
本文介绍了托管需要以800x600分辨率运行的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以创建一个程序来托管一个使用800x600屏幕分辨率的32位应用程序,而无需实际更改Windows桌面设置?

例如:

如果我有一个最大化的程序,并且其显示设置为1366x768,只占用了大约四分之一的屏幕,则全屏运行该程序的唯一方法是将分辨率设置为800x600.

有任何建议吗?

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?

推荐答案

如果我对您的理解正确,那么您的窗口大小不会超过800x600.屏幕分辨率为1366x768时,它不会填满整个屏幕.唯一的方法是将分辨率设置为800x600,这会导致其他问题.

在不更改分辨率的情况下,我看不到该解决方案将如何避免同样的陷阱..在控制面板中辅助功能"选项下找到的屏幕放大镜又如何呢? (或按住Windows键并按+或-,至少在win7上-我不知道较早的版本)


失败的话,我想您可以截取托管应用程序的屏幕快照,在托管应用程序之前的自己的全屏应用程序中缩放并重新绘制此图像.然后,您必须缩放比例并将所有鼠标移动/键盘笔划传回托管的应用程序.
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.


我不知道全屏显示的确切含义,但是您可以防止将窗口的尺寸调整为大于800x600.您只需要处理窗口消息WM_GETMINMAXINFO.
问候.
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.


尽管我从未尝试过,但我认为虚拟机(VMWare,Virtual PC ...)将是解决此问题的方法.只需将猜测操作系统的分辨率设置为800x600,然后在该虚拟机中启动您的应用程序即可.
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.


这篇关于托管需要以800x600分辨率运行的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆