Each application created has this menu created automatically (just test will a small example). To add the 'Quit', 'About' and 'Preferences' menu item, you can use the following constants for the MenuItem() command:
#PB_Menu_Quit, #PB_Menu_About and #PB_Menu_Preferences