Vcl.Menus.TMainMenu.PopulateOle2Menu
Delphi
procedure PopulateOle2Menu(SharedMenu: HMenu; const Groups: array of Integer; var Widths: array of Longint);
C++
void __fastcall PopulateOle2Menu(HMENU SharedMenu, int const *Groups, const int Groups_High, int *Widths, const int Widths_High);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TMainMenu |
Description
Populates an OLE menu with items from the main menu.
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.