gpt4 book ai didi

c++进程始终在窗口操作系统的前台

转载 作者:可可西里 更新时间:2023-11-01 11:14:54 29 4
gpt4 key购买 nike

我有一个 C++ 进程,我希望该进程始终保持在前台,请指导我如何实现它?

最佳答案

这是不可能的,因为用户总是可以选择切换到另一个应用程序。这是设计使然。

良好的链接来自 Billy ONeal :

How do I create a window that is never covered by any other windows, not even other topmost windows?

Imagine if this were possible and imagine if two programs did this. Program A creates a window that is "super-topmost" and so does Program B. Now the user drags the two windows so that they overlap. What happens? You've created yourself a logical impossibility. One of those two windows must be above the other, contradicting the imaginary "super-topmost" feature.

关于c++进程始终在窗口操作系统的前台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2605099/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com