RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMainMenu.PopulateOle2Menu Method

Populates an OLE menu with items from the main menu.

Pascal
procedure PopulateOle2Menu(SharedMenu: HMenu; const Groups: array of Integer; var Widths: array of Longint);
C++
__fastcall PopulateOle2Menu(HMenu SharedMenu, const array of Integer Groups, array of Longint Widths);

Call PopulateOle2Menu to merge the menu items with GroupIndex values specified by the Groups parameter into the menu that uses the SharedMenu handle. PopulateOle2Menu appends all menu items in the specified groups to the menu, and increments the corresponding entries in the Widths array for every menu item appended. PopulateOle2Menu is used by OLE containers when merging menus.

Note: PopulateOle2Menu populates the menu specified by the SharedMenu parameter but does not set this as the OLE menu associated with the menu.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!