shield_019 wrote: > I just added an icon on the systray when launching my applicatoin and > of course removing it when terminating the application. > > My question is how can I add a pop up menu to this icon?
I guess you haven't directly used Shell_NotifyIcon to add the icon. When you fill in the TNotifyIconData record, you specify a window handle in the hWnd field and a message identifier in the uCallbackMessage field. When something happens to the icon in the notification area, the shell will send the given window the specified message. The lParam parameter of that message will tell you which event occured, such as wm_MouseMove or wm_LButtonDown. Everything is explained in MSDN; start at the Shell_NotifyIcon topic and follow the links from there. To display a popup menu, call the TrackPopupMenuEx API function. -- Rob ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

