CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    France
    Posts
    14

    How to add actions on a tray icon ?

    Hi..
    Here's my new question...How to add actions on a tray icon ? (by Tray Icon, I mean those icons appearing near the clock in the Win9x taskbar..).
    I succeeded in creating the Icon and making it appear in its right place, even add tooltip to it, but I can't find the way how to know when the user clicks on it and then do something like making a menupopup appear..How can I 'catch' clicks on the Tray Icon ?
    thanks in advance...
    -jal-


  2. #2
    Join Date
    Apr 1999
    Location
    Chennai, India
    Posts
    48

    Re: How to add actions on a tray icon ?

    hi,

    u should have passed the NOTIFYICONDATA structure which contains hWnd and callbackmessage. The wndproc of the hWnd will be called with the callbackmessage. U can write a handler to do ur processing !

    Enjoy,


    The solutions are always there, it is only that we dont see it ...


  3. #3
    Join Date
    May 1999
    Posts
    7

    Re: How to add actions on a tray icon ?

    I don't know how to resolve you problem, but can you tell me how to add a icon to the right corner of taskbar, even tooltip?

    thanks


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

Featured