Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I connect a dialog box and a menu to a system tray icon?

Status
Not open for further replies.

namxat

Programmer
Oct 23, 2002
6
US
Hello. I'm a little bit new to the Windows API, and was wondering if someone could help me out. I am using the LCC-Win32 compiler, by the way.

Basically, I want to create a program that runs in the system tray. When the user left-clicks on the system tray icon, it should display a dialog box. (The program will not end execution when the dialog box is dismissed). When the user right-clicks on the system tray icon, a menu will pop up from which the user can choose to exit the program or do various other things.

I know how to create, show, and retrieve the return value of a dialog box. I also know how to put an icon in the system tray, sort of: I know it involves the Shell_NotifyIcon method. What I need to find out is how to combine the two.

I also have some compatibility concerns about the Shell_NotifyIcon method. This application will be distributed across the Win95/98/2000/ME/NT/XP line. If anybody could help me out, I would greatly appreciate it. Thank you.
 
Never mind. I re-posted this in the Win API forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top