i am trying to remove icons of other programs from the system tray. i know how to get the handle of the icon and the handle of it's application, but i need to know what to do next.
thankyou
Printable View
i am trying to remove icons of other programs from the system tray. i know how to get the handle of the icon and the handle of it's application, but i need to know what to do next.
thankyou
I at 99 % that the only way to remove it, is to remove ALL the icon or to close the program..
cause it's IN the program..
Again, if you find how,
notify me
[email protected]
no, it is possible, i've seen another program do it.
i just don't know what to do next from here
win98
start
run
msconfig
goto startup tab and remove pgm
this not only removes the icon it removes the program
some can go, others should stay.
no, i meant without removing the program
I don't think there is a way, but this is close enough.
Code:Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Public Const SW_SHOW = 5
Public Const SW_HIDE = 0
Private Sub Command1_Click()
Dim shelltraywnd As Long, traynotifywnd As Long
shelltraywnd = FindWindow("shell_traywnd", vbNullString)
traynotifywnd = FindWindowEx(shelltraywnd, 0&, "traynotifywnd", vbNullString)
Call ShowWindow(traynotifywnd, SW_Hide)
'To show, change SW_Hide to SW_Show
End Sub
that's not exactly what i meant either, same idea, just with individual programs. i want to be able to remove a specific icon from the system tray using its hwnd but without crashing the program.
no one knows how? plz help me if you do.