An application typically associates a shortcut menu with a portion of a window, such as the client area, or with a specific object, such as an icon. A shortcut menu is not attached to the menu bar it can appear anywhere on the screen. This section discusses the following topics. The system sends messages to a menu's owner window when the user selects the menu or chooses an item from the menu. For more information about overlapped and pop-up windows, see Window Types.Įach menu must have an owner window. A submenu is not visible, however, until the user selects a menu item that activates it. If the window has a title bar, the system positions the menu bar just below it. Only an overlapped or pop-up window can contain a menu bar a child window cannot contain one. To get information about a menu bar, call GetMenuBarInfo. For example, a menu bar might contain a File menu name that, when clicked by the user, activates a menu with menu items such as New, Open, and Save. Selecting a menu name from the menu bar typically opens a menu whose menu items correspond to the commands in a category. The menu names on a menu bar represent the main categories of commands that an application provides. A menu item on the menu bar that opens a drop-down menu is also called a menu name. When a drop-down menu is displayed, it is attached to the menu bar. A menu opened from the menu bar drops down from the menu bar and is sometimes called a drop-down menu. An item that carries out a command is called a command item or a command.Īn item on the menu bar almost always opens a menu. A menu bar is sometimes called a top-level menu, and the menus and submenus are also known as pop-up menus.Ī menu item can either carry out a command or open a submenu. At the top level of the hierarchy is the menu bar which contains a list of menus, which in turn can contain submenus. Enabled, Grayed, and Disabled Menu ItemsĪ menu is arranged in a hierarchy.Command Items and Items that Open Submenus.This section provides information on the following topics: Clicking a menu item opens a submenu or causes the application to carry out a command. A menu is a list of items that specify options or groups of options (a submenu) for an application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |