Taking a simple example, say I have wxMenuBar in my frame. wxMenuBar only has one wxMenu let say Exit. The wxMenu itself is empty -- that is to say it contains no drop down menu items. Now when the user clicks on the Exit on the menubar it should call some eventhandler function(that presumably closes the program etc.). How do I do that?
Thanks