fixed #31 ; Modify the way to get instance of wxMenu.