Solved

Sytem tray icon not handling messages

Posted on 2004-03-26
4
701 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 54
Best tools for Backup and restore of Wordpress site 6 57
tripleUp challenge 7 79
NotAlone Challenge 20 83
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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