I think the API call for the system tray is ShellNotifyIcon. You will want to find some tutorial about it somewhere. You will be able to associate a menu with the icon when you set the icon up in the tray, If i remmeber correctly.

Z.