Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6752047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:59:56+00:00 2026-05-26T12:59:56+00:00

We have an application that uses various system tray icons to communicate with users.

  • 0

We have an application that uses various system tray icons to communicate with users. Different icons indicate different internal states of the (otherwise windowless) application. We implemented our system tray stuff using code from this Code Guru project (the MFC version; this is not a new application by any means), and until recently, it has worked fine. However, recently we have tried to add another icon and have run into trouble.

Here’s how it’s supposed to work:

  1. We have one main icon (call it ‘A’) that indicates that the application is running.

  2. If a particular event occurs, we display icon ‘B’, over which the user can hover their mouse to get a tooltip with status regarding that event.

  3. If a (recently added, internal, threaded) procedure starts, we display icon ‘C’, and again, the user can hover over that to see a tooltip that indicates the progress of that activity.

What’s actually happening: if icon ‘B’ is visible when we (try to) display icon ‘C’, then icon ‘B’ either disappears entirely, never to return, or it stays there and icon ‘C’ never shows up, but the tooltip for icon ‘B’ is changed to what icon ‘C’ should have.

I’ve simplified the scenario a bit; we actually have a few other icons, but they’re rarely used. However, we have never had any trouble displaying multiple icons until we added icon ‘C’ in the last couple of weeks.

Any ideas? Happy to clarify anything I haven’t explained well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:59:57+00:00Added an answer on May 26, 2026 at 12:59 pm

    You need to use a different uID for each icon. The documentation says:

    The application-defined identifier of the taskbar icon. The Shell uses either (hWnd plus uID) or guidItem to identify which icon to operate on when Shell_NotifyIcon is invoked. You can have multiple icons associated with a single hWnd by assigning each a different uID. If guidItem is specified, uID is ignored.

    In other words you need to pick a value for uID. This is how the shell knows which icon you are referring to each time you call Shell_NotifyIcon(). Clearly you must use a different value for each icon. So, use 0 for icon A, 1 for icon B etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that uses managed System::String in the UI elements, but then
I have an application that uses various script files. These files are not used
I have an application that uses jQuery tabs to display different dynamic content for
I have an application that uses Crystal Reports to display information entered on various
I have an asp.net mvc application that uses web service. I have various controllers
I have an application that uses NHibernate as its ORM and sometimes it experiences
I have client application that uses WCF service to insert some data to backend
I have an application that uses the accelerometer. Sometimes, the application will launch without
I have an application that uses window.open() to generate dynamic popups. Unfortunately, I've had
I have an application that uses a cron like job to update a set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.