Solved

Sytem tray icon not handling messages

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tab names are off by one 5 54
format the code in java 6 102
VBA "SendKeys" Syntax for Multiple Keystrokes 7 117
wordcount challenge 11 134
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…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.

830 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