Solved

Sytem tray icon not handling messages

Posted on 2004-03-26
4
696 Views
Last Modified: 2013-11-20
I have a simple ATL COM service.I have made a simple system tray icon and when ever i start the service the icon is displayed on the system tray so far so good.Now  i am
trying to display a dialog box when i click on the icon,but the message loop is not responding or firing any events.can i have a general algorithm or any sites which have a similar routine.thank you.

0
Comment
Question by:software_elico
  • 2
4 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 10693485
0
 

Author Comment

by:software_elico
ID: 10694001
Iam having a problem in displaying a dialog box when i click on the icon.The event is not firing?i have a ATL COM service.
0
 
LVL 6

Accepted Solution

by:
joghurt earned 250 total points
ID: 10694616
1. You can download the CTrayIcon example (or get Chris Maunder's version of it).
2. How do you fill your NOTIFYICONDATA structure before you call Shell_NofityIcon?
3. Does it jump into your callback function when you click the icon?
0
 

Author Comment

by:software_elico
ID: 10711074
Joghurt,
           the clue was good enough.There was a problem with the call back function in the NOTIFYICONDATA structure.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Separate files macro - Errors on larger data set 18 56
sameEnds challenge 3 107
substring method in java 1 79
NotAlone Challenge 20 72
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now