本文介绍了如何使窗口绝对最顶部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 SetWindowPos 使用HWND_TOPMOST参数使我的窗口最顶部的api.它可以正常工作,但工具提示仍然是最重要的.

I use the SetWindowPos api to make my window topmost with the HWND_TOPMOST param.It works fine, but still tooltips are on top of it.

如何使我的窗口最重要.有我缺少的api吗?

How to make my window on top of all. Is there an api that I'm missing?

编辑:我用计时器检查了前景窗口,然后将我的窗口设置为最高,对此进行了修复.

I fixed it with a timer checking the foreground window and then setting mine to topmost.

推荐答案

旧的新事物博客. TopMost是TopMost.如果两个窗口相互竞争,则必须将其松开.没有秘密的MoreTopMost常量.

There is no way to do that, as noted in the Old New Thing blog. TopMost is TopMost. If two windows are competing one must loose. There is no secret MoreTopMost constant.

这篇关于如何使窗口绝对最顶部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 15:39