[英]Is it possible to create a window on top of a right-click menu?
What I want to achieve is this: 我想要实现的是:
On Windows platform: 在Windows平台上:
Is step 3 possible? 第3步可能吗?
I am going through the Window Styles from the 2 links below: 我将通过以下2个链接浏览Window Styles:
Extended Windows Styles 扩展的Windows样式
Not sure if they can help me. 不确定他们是否可以帮助我。
I discovered a solution in C# that may be applicable. 我发现了一个可能适用的C#解决方案。 If you bring the window to the front after the context menu has been created, it will bring it in front of the context menu.
如果在创建上下文菜单后将窗口置于前面,则会将其置于上下文菜单的前面。 You can emulate a window that is always on top of everything on the screen by repeatedly bringing it to the front in a background thread.
您可以通过在后台线程中重复将其放在前面来模拟一个始终位于屏幕上所有内容之上的窗口。
Here is the C# implementation: 这是C#实现:
How to draw on top of the right-click menu in .NET/C#? 如何在.NET / C#中的右键菜单上绘制?
This link may also help. 此链接也可能有所帮助。 I don't know if the same process could be used to display on top of the right-click menu, especially not in Java, but it may be worth a look:
我不知道是否可以使用相同的进程显示在右键单击菜单的顶部,尤其是在Java中,但是可能值得一看:
How can I make my own application on top in the start menu? 如何在开始菜单中将我自己的应用程序置于顶部?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.