User-Interface: Best way to toggle MDI frame's on-top status?

百般思念 提交于 2019-12-24 06:49:27

问题


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.

  • 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?

Update

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?


回答1:


Maybe this or this helps.

Uli



来源:https://stackoverflow.com/questions/591508/user-interface-best-way-to-toggle-mdi-frames-on-top-status

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!