Results 1 to 8 of 8

Thread: icons in tray

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    USA, Virginia
    Posts
    25

    Question

    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


  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Posts
    208
    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]

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    USA, Virginia
    Posts
    25
    no, it is possible, i've seen another program do it.
    i just don't know what to do next from here


  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    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

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    USA, Virginia
    Posts
    25
    no, i meant without removing the program

  6. #6
    Guest
    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

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    USA, Virginia
    Posts
    25
    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.

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    USA, Virginia
    Posts
    25
    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
  •  



Click Here to Expand Forum to Full Width