win32gui中操作工作列托盤區的函式

whisperrr發表於2021-09-09

  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


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70005147/viewspace-2791286/,如需轉載,請註明出處,否則將追究法律責任。

相關文章