Hello. I inappropriately posted this message to the C newsgroup. 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.
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.