窗口隐藏在另一个窗口后面 [英] Window is getting hidden behind another window
本文介绍了窗口隐藏在另一个窗口后面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在VC ++中遇到问题,有人可以帮忙吗?
我有两个窗口A和BI打开窗口A并且不要关闭它(单击一个图标可以说工具栏中的icon1)。
稍后,我打开窗口B(单击一个图标让我们说工具栏中的icon2),我看到窗口A隐藏在窗口B后面。直到现在!!!
现在如果再次点击icon1,还是窗口A在窗口B后面?我怎么能解决这个问题?
我需要在窗口B的顶部有窗口A.
问候,
Joy
解决方案
什么是 CWnd :: SetWindowPos ?
你可以设置wndTopMost
如果你想把它保持在最顶层。
然后窗口A位于每个窗口的顶部。
请让我/我们更多地了解您的要求,也许我们可以帮助您更多。
Hello guys,
I am facing an issue in VC++, can anybody help?
I have two windows A and B.I open window A and do not close it ( clicking a icon lets say icon1 in toolbar).
Later, I open window B (clicking a icon lets say icon2 in toolbar), I see window A is getting hidden behind window B. well till now!!!
Now if again I click on icon1, still window A is behind window B? how can I fix this??
I need to have window A on top of window B.
Regards,
Joy
解决方案
What's about CWnd::SetWindowPos?
You could setwndTopMost
if you would like to keep it on top.
But then window A is on top of every window.
Please let me/us know a bit more about your requirements, maybe we could help you a bit more.
这篇关于窗口隐藏在另一个窗口后面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文