Creates and initializes a menu item that represents a submenu.
Menus
Call NewSubMenu to create a menu item that represents a submenu when constructing a menu programmatically at runtime.
The ACaption parameter indicates the string that appears in the parent menu for the submenu.
The hCtx parameter specifies the help context ID for the menu item.
The AName parameter specifies the name of the menu item, which can be used to refer to the menu item in code.
The Items parameter specifies an array of menu items that make up the submenu and that appear when the user clicks the submenu item in the parent menu.
Once a submenu has been created using NewSubMenu, it can be added to a menu using the target parent's Add method. If the entire menu is being created dynamically at runtime, the new menu item can be added to an array that is passed as a parameter to the NewMenu, NewPopupMenu, or NewSubMenu function.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|