RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleControl.SetMenu Method

Attaches a menu to the in-place activated ActiveX object.

Pascal
function SetMenu(hmenuShared: HMenu; holemenu: HMenu; hwndActiveObject: HWnd): HResult; stdcall;
C++
__fastcall __stdcall HRESULT SetMenu(HMenu hmenuShared, HMenu holemenu, HWnd hwndActiveObject);

Call SetMenu to attach a menu to the ActiveX control, which is in-place activated. To remove the menu, call SetMenu with hmenuShared set to 0. Removing the menu is mandatory when the ActiveX object is to be deactivated. 

 

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