Vcl.Menus.TMainMenu.SetOle2MenuHandle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetOle2MenuHandle(Handle: HMENU);

C++

void __fastcall SetOle2MenuHandle(HMENU Handle);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMainMenu

Description

Associates the handle for an OLE menu with the main menu.

Call SetOle2MenuHandle to temporarily replace the menu of a form with the menu represented by the Handle parameter. To restore the original menu, call SetOle2MenuHandle with the Handle parameter set to 0. SetOle2MenuHandle allows an OLE container to use menu items provided by an OLE server.

See Also