使用API​​代码访问系统任务栏 [英] Accessing System tray with API code

查看:71
本文介绍了使用API​​代码访问系统任务栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的应用程序需要在右键单击系统托盘中的图标时从找到的菜单项中启动.我正在开发一个小型应用程序,无论图标在系统托盘上的什么位置,都可以访问菜单项.尝试使用Findwindow,SetActiveWindow,SendNotifyMessage函数没有任何运气.有人有帮助吗?
谢谢

I am using a application that needs to be started from a menu item found when right clicking an icon in the sytem tray. I am working on a small application that could acess the menu item no matter what location the icon appears on the system tray. Have tried using Findwindow, SetActiveWindow, SendNotifyMessage functions with no luck. does anyone have some helpful information?
Thanks

推荐答案

看看我早些时候写的这篇文章:

http://www.codeproject.com/KB/applications/ShellTrayInfo.aspx [ ^ ]

浏览源代码,您将看到如何访问工具栏按钮.一旦到达该部分,发送所需的消息以调用该应用程序将非常容易.
Take a look at this article I wrote some time back:

http://www.codeproject.com/KB/applications/ShellTrayInfo.aspx[^]

Go through the source code and you''ll see how to access the toolbar buttons. Once you get to that part, it will be fairly easy to send the required messages to invoke the application.


这篇关于使用API​​代码访问系统任务栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆