最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

eclipse - Java (JNA) vs. Visual Studio: Bringing Minimized Third-Party Application to Foreground - Stack Overflow

programmeradmin6浏览0评论

I am using Eclipse with Java to bring a third-party application to the foreground. For this, I am utilizing:

JNA 5.12.1 JNA Platform JAR 5.12.1

However, when the third-party application is minimized, it only gets highlighted in the taskbar instead of opening in the foreground. In contrast, applications like Notepad open in the foreground as expected.

When I tried the same approach in Visual Studio, the third-party application successfully opened in the foreground, even when minimized. In Visual Studio, I used the SetForegroundWindow API, which worked perfectly to restore my application when it was minimized. In Java (Eclipse), I used ShowWindow to restore the minimized application and SetForegroundWindow to bring it to the front. However, it only highlights the taskbar icon instead of bringing it to the foreground.

My expectation is that my application should come to the foreground when using Eclipse with Java, just like it does in Visual Studio

发布评论

评论列表(0)

  1. 暂无评论