我是靠谱客的博主 虚幻水杯,这篇文章主要介绍win32gui中操作任务栏托盘区的函数win32gui.Shell_NotifyIcon,现在分享给大家,希望可以做个参考。

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

win32gui.Shell_NotifyIcon

Shell_NotifyIcon(Message, nid)

Adds, removes or modifies a taskbar icon.

 

Parameters

 

Message : int

 

One of win32gui.NIM_* flags

 

nid : Tuple containing NOTIFYICONDATA info

Items

 

[0] PyHANDLE : hWnd

 

Handle to window that will process icon's messages

 

[1] int : ID

 

Unique id used when hWnd processes messages from more than one icon

 

[2] int : Flags

 

Combination of win32gui.NIF_* flags

 

[3] int : CallbackMessage

 

Message id to be pass to hWnd when processing messages

 

[4] PyHANDLE : hIcon

 

Handle to the icon to be displayed

 

[5] str : Tip

 

Tooltip text (optional)

 

[6] str : Info

 

Balloon tooltip text (optional)

 

[7] int : Timeout

 

Timeout for balloon tooltip, in milliseconds (optional)

 

[8] str : InfoTitle

 

Title for balloon tooltip (optional)

 

[9] int : InfoFlags

 

Combination of win32gui.NIIF_* flags (optional)

Tuple containing NOTIFYICONDATA info

转载于:https://my.oschina.net/piginwind/blog/693657

最后

以上就是虚幻水杯最近收集整理的关于win32gui中操作任务栏托盘区的函数win32gui.Shell_NotifyIcon的全部内容,更多相关win32gui中操作任务栏托盘区内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(125)

评论列表共有 0 条评论

立即
投稿
返回
顶部