将任何应用程序放在系统托盘中 [英] Place Any Application in the System Tray

查看:92
本文介绍了将任何应用程序放在系统托盘中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你们所有真正的程序员都欢迎!!


有一个名为Tray It的应用程序


网页:

----------

http://www.teamcti.com/trayit/trayit.htm


直接下载:

------------------

http://www.teamcti.com/trayit/trayit.zip

我想做的是模仿添加任何应用程序系统托盘/保持

托盘中的特定应用程序图标,如托盘它。


我已通过电子邮件发送网站管理员询问他们是否会给我任何指示,

但他们还没有回复。


你有什么想法(实际代码)可以帮助我实现以上? [没有

谷歌集团链接感谢Herfried :)]


提前致谢,


Crouchie1998

BA(HONS)MCP MCSE

Hello To All You Real Programmers Out There!!

There is an application called: "Tray It"

Webpage:
----------

http://www.teamcti.com/trayit/trayit.htm

Direct Download:
------------------

http://www.teamcti.com/trayit/trayit.zip

What I want to do is mimic adding any application to the system tray/keeping
that particular applications icon in the tray, like Tray It does.

I have e-mailed the webmaster to ask them if they will give me any pointers,
but they haven''t replied as yet.

Do you have any ideas (real code) that will help me achieve the above? [No
Google Group links thanks Herfried :)]

Thanks in advance,

Crouchie1998

BA (HONS) MCP MCSE

推荐答案

在设计器中,将通知图标项拖到表单上,然后在deisgn属性中为它指定一个图标

。然后在代码窗口中,你要隐藏

窗口,执行代码


"" Air Code""


me.notifyicon.visible = true

me.hide()


"" End Air Code""


然后再次显示表单,在代码窗口中,做一个通知图标双

点击事件并执行此操作


"" Air Code""


me.notifyicon.visible = false

me.show()


End Air Code"


如果没有帮助,请问我,我可以发送一些关于如何做的实际代码,

希望这有帮助
in the designer, drag a notify icon item onto your form, then assign an icon
to it in the deisgn property. then in the code window, where you want to hide
the window, do the code

""Air Code""

me.notifyicon.visible = true
me.hide()

""End Air Code""

then to show the form again, in the code window, do a notify icon double
click event and do this

""Air Code""

me.notifyicon.visible = false
me.show()

"End Air Code""

if that doesnt help, ask me and i can send u some real code on how to do it,
hope this helps


你读过我写的东西吗?

LOL @你的回复!!


我可以将自己的应用程序放在系统托盘中,但如果你下载了我提到的那个

应用程序,那么你会看到我想要做的事情。我只知道两个人到目前为止已经完成了这项工作。它们都用

用C ++编写。虽然键盘挂钩很简单,但我无法弄清楚它是如何编码的。它是b
$ C $ b Crouchie1998

BA(HONS)MCP MCSE
Did you read what I wrote?
LOL @ Your Reply!!

I can put my own application in the sytem tray, but if you downloaded that
application I mentioned then you will see what I am trying to do. I only
know of two people that have actually done this so far. Both of them have
coded it in C++ & although keyboard hooking is simple, I cannot work out how
the Tray It is coded

Crouchie1998
BA (HONS) MCP MCSE


Crouchie1998写道:
Crouchie1998 wrote:
知道到目前为止已经实际做过这两个人了。他们两个都用C ++编写了它。虽然键盘挂钩很简单,但我无法弄清楚它是如何编码的
know of two people that have actually done this so far. Both of them have
coded it in C++ & although keyboard hooking is simple, I cannot work out how
the Tray It is coded




我不知道托盘是如何工作的,但是不能你使用FindWindow来获得你想要的窗口的窗口句柄,然后发送消息给

最小化,然后在托盘中放置一个图标?



I don''t know how Tray It works, but couldn''t you use FindWindow to get
the window handle of the window you want, then send it a message to
minimize and then place an icon in the tray?


这篇关于将任何应用程序放在系统托盘中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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