如何找到 Apple Help Viewer 应用程序的 WindowRef?
在我的 Carbon 应用程序中显示首选项窗格时,我有一个链接,单击该链接将打开 Apple 帮助查看器。
我面临的问题是帮助查看器窗口位于我的首选项窗格窗口后面。
我想将帮助查看器窗口保留在首选项窗格的顶部。
有没有办法获取帮助查看器应用程序的 WindowRef,以便我可以使用 SendBehind API 将帮助查看器发送到当前窗口后面。
非常感谢
问候, 马克
In my Carbon application upon display of Preference Panes, I have a link which when clicked opens up Apple Help Viewer.
The problem I am facing is the Help Viewer Window is behind my preference pane window.
I would like to keep the Help Viewer window on top of the Preference Pane.
Is there any way to get the WindowRef of the Help Viewer app so that I can use SendBehind API to send the help viewer behind the current window.
Thanks a lot
Regards,
Marc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你的问题令人困惑;您说问题是帮助查看器窗口位于首选项窗格窗口后面,但您希望使用 SendBehind 将帮助查看器发送到当前窗口后面。我猜你的意思是帮助查看器在前面。这是一个常见的烦恼,我认为没有解决方案。
至于更具体的问题,不,您无法在另一个进程中获取窗口的 WindowRef 。它位于不同的地址空间中。
Your question is confusing; you say the problem is that the help viewer window is behind the preference pane window, but that you want to use SendBehind to send the help viewer behind the current window. I'm guessing you meant to say that the help viewer is in front. This is a common annoyance, and I don't think there is a solution.
As for the more specific question, no, you can't get a WindowRef for a window in another process. It's in a different address space.
帮助查看器处于不同的进程中,因此 SendBehind 不会为您提供帮助。听起来更像是您的首选项窗口位于错误的层。您使用什么窗口类?您是否正在更改其窗口组或类似的内容?
The Help Viewer is in a different process, so SendBehind isn't going to help you. It sounds more like your preferences window is in the wrong layer. What window class are you using? Are you changing its window group or anything like that?