似乎最高属性有时会使我的应用程序在其他所有应用程序之上,但在我的测试过程中,它非常奇怪,有时它可以正常工作,窗口保持在所有其他(外部应用程序)窗口之上,但有时它根本不起作用。我甚至尝试使用WS_EX_TOPMOST标志,通过使用Win32 API调用setWindowLong()来设置它。没有一个能够保持窗口在最上层。除了使用最高层外,是否还有其他方法可以将窗口保持在所有打开窗口的最上层?或者关于最高层还有什么我应该知道的事情吗?
I was wondering if someone can tell me what would be the best way to bring my application to the foreground if a mutex was not able to be created for a new instance. E.g.: Application X is running ...