用户界面:切换MDI框架的顶部状态的最佳方法? [英] User-Interface: Best way to toggle MDI frame's on-top status?

查看:125
本文介绍了用户界面:切换MDI框架的顶部状态的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我维护了一个使用Frame Windows作为文档视图的MFC(VC6)MDI应用程序.一次只有一个文档,但是有多个MDI框架,每个MDI框架都有不同的文档数据视图.

I maintain an MFC (VC6) MDI application that uses Frame Windows as views for a document. There is only one document at a time but there are several MDI-Frames each with a different view of the document data.

最近出现了一个请求,要求能够将其中一个框架窗口保持在其他框架窗口的上方,同时又能够与背景窗口进行交互.

Recently a request came up to be able to keep one of those frame windows on top of the others while being able to interact with the background windows.

  • 一个想法是在框架的标题栏中添加固定按钮".在研究过程中,我发现每个实现都使用位图,而不是使用CButton对象.一旦使用默认默认灰色(更不用说UI主题)以外的窗口颜色,这种情况就会开始变得难看.

  • One idea was to add a "pin-button" to the frame's title bar. During my research I found out that every implementation uses bitmaps instead of for example CButton objects. This starts to get ugly as soon as one uses window colors other than the default-grey let alone UI-Themes.

框架窗口菜单中的一个选项(当在标题栏中左击窗口图标时出现的东西)是可能的,但我正在寻找对用户来说更明显的东西.

An option in the menu of the frame window (the thing that appears when left-clicking the window icon in the title bar) would be possible but I'm searching for something that is more obvious to the user.

还有其他设置此框架窗口的顶部状态的可能性吗?

What other possibilities to set this frame window's on-top state are there?

我已决定使用 Uli建议的解决方案,因为该解决方案可以很好地适应XP主题. 不幸的是,这直接将我引向下一个问题: 如何我真的可以使框架窗口停留在顶部吗?

I have decided to go for the solution suggested by Uli as that one works fine with the XP themes. Unfortunately this directly lead me to my next question: How can I actually make the frame window stay on top?

推荐答案

也许帮助.

乌里

这篇关于用户界面:切换MDI框架的顶部状态的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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