如何将MFC MDI应用程序框架窗口扩展为双监视器? [英] How do I extend MFC MDI application frame window to dual Monitors?

查看:130
本文介绍了如何将MFC MDI应用程序框架窗口扩展为双监视器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个MDI MFC图像查看器应用程序,用于同时查看和比较多个图像。在我的应用程序中,我需要实现双显示器支持,可以在连接到系统的两个监视器中查看显示图像,并且查看器应该提供在所需的监视器屏幕中排列打开的图像。

我连接了两个使用图形卡监视我的电脑。

但是当我打开我的MDI应用程序时,它的窗口只显示在主监视器中,即使windows桌面扩展到整个两个监视器屏幕。

如何扩展MDI应用程序的大小框架占据了两个显示器的整个屏幕。



我不知道如何解决我的问题

无论如何我是如果应用程序窗口范围考虑整个监视器,则可以将整个屏幕分割(通过使用分割器窗口类型的方法)将多个窗口放置在两个监视器中以显示不同的图像。

但是我不确定它是否是一个合适的解决方案。

我对这方面几乎没有疑问

- 我可以扩展MDI框架窗口占据整个屏幕空间(两个显示器)

- 我可以将子框架放在主机所需的区域



我计划的第二种方法是通过从另一个主应用程序调用(必要时使用线程)同时创建我的图像查看器应用程序的两个实例,然后将各个图像查看器应用程序窗口放在两个监视器屏幕中并控制图像查看器应用程序中显示的图像从主要的应用程序。为了成功实现这种方法,我需要创建第二个应用程序,它可以创建和控制图像查看器应用程序的两个实例,并且应该能够将它们的窗口放在两个监视器屏幕中。我不知道这在技术上是否可行。

我在网上搜索了很多但我找不到任何帮助。我只是在http://www.codeproject.com/Articles/3690/MFC-classes-for-multiple-monitors

的代码项目文章中找到了一个有用的信息,我试过在我的MDI应用程序中使用它,但我失败了。

如果有人在MFC MDI应用程序中分享他们对双显示器支持实现的了解,那对我来说会更有帮助。

I have developed an MDI MFC image viewer application for simultaneously viewing and comparing more than one images. In my application I need to implement dual monitor support which can view the displaying images in two monitors connected to the system and viewer should have provision to arrange the opened images in desired monitor screen.
I have connected two monitors to my computer using a graphics card.
But when I open my MDI application its window only displaying in primary monitor even though the windows desktop extended to whole two monitor screens.
How can I extent size of MDI application frame to occupy the whole screen of the two monitor.

I don't exactly know how to solve my issue
Anyway I'm thinking if the application window extent to whole monitor, then can split(by using splitter window type of method) the whole screen to a number of windows placed in the two monitors to display the different images.
But I'm not sure about whether it is a proper solution.
I have few doubts in this regard
- can I extent the MDI frame window to occupy the whole screen space (of two monitors)
- can I place the child frames in the desired area of mainframe

A second approach I planning is to simultaneously creating two instance of my image viewer application by calling from another main application (using threads if necessary) then place the individual image viewer application windows in two monitors screens and control the images displaying in image viewer applications from the main application. For successfulness of this approach I need to create a second application which can create and control two instances of the image viewer application and should able to place their windows in the two monitor screen. I don't know whether this is technically possible.
I searched a lot in web but I couldn't find any help. I only found one somewhat useful information from the code project article in the post http://www.codeproject.com/Articles/3690/MFC-classes-for-multiple-monitors
and I tried to use it in my MDI application, but I failed.
If anyone share their knowledge about implementation of dual monitor support in MFC MDI application, it will be more helpful for me.

推荐答案

这篇关于如何将MFC MDI应用程序框架窗口扩展为双监视器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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