Results 1 to 3 of 3

Thread: Do you wanna handle the Taskbar? Here is the most easy way!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2023
    Posts
    832

    Do you wanna handle the Taskbar? Here is the most easy way!

    All you need is a Typelib with access to ITaskbar and 2 and 3.

    Code:
    Public Function ShGetTaskBar(pITB As ITaskbarList) As Long
      Dim hr As Long
      Static CLSID_TaskbarList As GUID
      
      CLSIDFromString2 StrPtr(sCLSID_TaskBar), CLSID_TaskbarList
      
      hr = CoCreateInstance(CLSID_TaskbarList, 0&, CLSCTX_INPROC_SERVER, IID_ITaskbarList, pITB)
      
      ShGetTaskBar = hr
      
    End Function
    do you need to access ITaskBar2 then just do this...
    Set pITB2 = pITB
    Or if you need ITaskBar3
    Set pITB3 = pITB

    Done! Have Fun

  2. #2
    PowerPoster
    Join Date
    Jan 2020
    Posts
    3,748

    Re: Do you wanna handle the Taskbar? Here is the most easy way!

    How to get the list of tray icons in the lower right corner of the taskbar.Get all the icon images. Get the path and handle of the software. How to remove an icon.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2023
    Posts
    832

    Re: Do you wanna handle the Taskbar? Here is the most easy way!

    Theese Interfaces does not provide handles to the taskbar’s tray icons.
    You need to use Shell_NotifyIconA or Shell_NotifyIconW to modify icons (apps) in that tray.
    Cheers ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width