I have a program that places an Icon in the System Tray. When you click on it, it displays a popup menu. The problem I am having is that if you click outside of the popup menu it stays open. Currently, I am using the trackpopupmenu api call. Is there a way to make the menu disappear if you click anywhere outside of the menu? Also, does anyone know how to add icons to the menu?