[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 711
  • Last Modified:

Sytem tray icon not handling messages

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
software_elico
Asked:
software_elico
  • 2
1 Solution
 
chensuCommented:
0
 
software_elicoAuthor Commented:
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
 
joghurtCommented:
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
 
software_elicoAuthor Commented:
Joghurt,
           the clue was good enough.There was a problem with the call back function in the NOTIFYICONDATA structure.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now