|
-
Sep 9th, 2000, 09:21 PM
#1
Thread Starter
Junior Member
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
-
Sep 9th, 2000, 09:27 PM
#2
Addicted Member
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]
-
Sep 9th, 2000, 09:31 PM
#3
Thread Starter
Junior Member
no, it is possible, i've seen another program do it.
i just don't know what to do next from here
-
Sep 9th, 2000, 10:16 PM
#4
_______
<?>
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.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 9th, 2000, 10:51 PM
#5
Thread Starter
Junior Member
no, i meant without removing the program
-
Sep 9th, 2000, 11:16 PM
#6
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
-
Sep 9th, 2000, 11:28 PM
#7
Thread Starter
Junior Member
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.
-
Sep 10th, 2000, 09:05 PM
#8
Thread Starter
Junior Member
no one knows how? plz help me if you do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|