Vcl.OleCtrls.TOleControl.SetMenu
Delphi
function SetMenu(hmenuShared: HMenu; holemenu: HMenu; hwndActiveObject: HWnd): HResult; stdcall;
C++
HRESULT __stdcall SetMenu(HMENU hmenuShared, HMENU holemenu, HWND hwndActiveObject);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.OleCtrls.pas Vcl.OleCtrls.hpp |
Vcl.OleCtrls | TOleControl |
Description
Attaches a menu to the in-place activated ActiveX object.
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.