CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2002
    Posts
    372

    two windows, one tray icon

    hi all,

    i have two windows (one visible at a time) and a system tray icon.
    is it possible to assign the visible window to the tray when i change it ?

    thanks

  2. #2
    Join Date
    Feb 2002
    Posts
    3,788

    Re: two windows, one tray icon

    Quote Originally Posted by neo_the_1 View Post
    hi all,

    i have two windows (one visible at a time) and a system tray icon.
    is it possible to assign the visible window to the tray when i change it ?

    thanks
    huh?

  3. #3
    Join Date
    Jul 2002
    Posts
    372

    Re: two windows, one tray icon

    i want to switch the handle of the tray icon to a different window.

  4. #4
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: two windows, one tray icon

    Call Shell_NotifyIcon with NIM_MODIFY as first parameter and pass the desired window handle in hWnd member of NOTIFYICONDATA.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  5. #5
    Join Date
    Jul 2002
    Posts
    372

    Re: two windows, one tray icon

    thank you very much Ovidiu Cucu !

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