Mimic outside click on a popup menu
问题 You know how in a popup menu if you click outside of the menu the popup disappears? Well I would like to reproduce that. Currently I am having a panel created with some components on it when a button is clicked. The panel and sub components go away when you click a certain button on the panel. However I want it to go away if you click anywhere outside of the panel. 回答1: I think you would need to install and application-wide mouse message hook, and if your panel is visible and the coordinates