The Menus example demonstrates how menus can be used in a main window application.