win32gui中操做任務欄托盤區的函數

win32gui.Shell_NotifyIcon

Shell_NotifyIcon(Message, nid)html

Adds, removes or modifies a taskbar icon.ui

 

Parameters

 

Message : intspa

 

One of win32gui.NIM_* flagshtm

 

nid : Tuple containing NOTIFYICONDATA infoip

Items

 

[0] PyHANDLE : hWndrem

 

Handle to window that will process icon's messagesget

 

[1] int : IDit

 

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

 

[2] int : Flagsgui

 

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

相關文章
相關標籤/搜索