IfmManage::put_Menu

This method places a specified control into the menu form.

Syntax

HRESULT put_Menu( IDispatch *pdispMenu, short wID );

Parameters

pdispMenu
Pointer to the control to be placed in the menu form. The control must be a power list box control.
wID
Short integer that contains the menu identifier.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that an invalid argument was entered. E_ACCESSDENIED indicates that access to the resource file was denied. If an error occurs, the appropriate HRESULT value is returned.

Remarks

There can only be one menu control on the menu form at a time. This method releases the current menu control, if one is present, and replaces it with a new one.

See Also

IfmManage::get_Menu