PureBasic Forum
http://forums.purebasic.com/english/

How to change tooltip text for a non PB systray icon text?
http://forums.purebasic.com/english/viewtopic.php?f=13&t=71893
Page 1 of 1

Author:  Michael Vogel [ Sat Dec 08, 2018 5:41 pm ]
Post subject:  How to change tooltip text for a non PB systray icon text?

Thought I would get the handles easily, but all I was able to do is the following...
Code:
hTaskbar = FindWindow_("Shell_TrayWnd", "")
Debug Hex(hTaskbar)
hTray = FindWindowEx_(hTaskbar, 0, "TrayNotifyWnd", "")
Debug Hex(htray)
hTray = FindWindowEx_(hTray, 0, "SysPager", "")
Debug Hex(htray)
n1 = GetWindow_(hTray,#GW_CHILD)
Debug Hex(n1)

nr=SendMessage_(n1,#TB_BUTTONCOUNT, 0, 0)

Debug Hex(n1)+", "+Str(nr)
Button.TBBUTTON

For i = 0 To nr-1
   Debug SendMessage_(n1,#TB_GETBUTTON,i,@Button)
   With Button
      Debug " - Icon #" + Str(i)+": "+Str(\iString)
   EndWith
Next

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/