RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMainMenu.SetOle2MenuHandle Method

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

Pascal
procedure SetOle2MenuHandle(Handle: HMENU);
C++
__fastcall SetOle2MenuHandle(HMENU Handle);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!