Results 1 to 4 of 4

Thread: System Tray

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    15
    Hi,

    How can I refresh the system tray after closing
    an application than run in the system tray ?




    TIA,
    Eddie

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I think it refreshes itself when an action like that is performed. Anyway you can use the UpdateWindow API.

    Public Declare Function UpdateWindow Lib "user32" Alias "UpdateWindow" (ByVal hwnd As Long) As Long
    Code:
    UpdateWindow hwndofsystray
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    15
    Thanks , but it doesn't work.

  4. #4
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Talking This might be it.

    If what your doing is, after your application has unloaded, you want to remove that Icon from the System tray, then just run this.

    Code:
    Shell_NotifyIcon NIM_DELETE, yourIconDataObject
    This will remove the icon from the system tray.

    NOTE: You must provide a constant for NIM_DELETE
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

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