CanEasy COM-Help
CanEasy::IMenu Interface Reference

Inherits IDispatch.

Detailed Description

Allows to create a menu.

Used by CanEasyItems showed in the tree.

interface IMenu : IDispatch
{
HRESULT Item([in] VARIANT vIndex, [out, retval] ICanEasyMenuControl **pVal);
HRESULT AddItem([in] ICanEasyMenuControl *pItem);
HRESULT MenuId([out, retval] __int64 *pId);
HRESULT DeleteMenu([in] ICanEasyMenuControl *pItem);
HRESULT SetMenuItemId([in] long lCurId, [in] long lNewId);
HRESULT SetMenuItemText([in] long lId, [in] BSTR sText);
HRESULT SetMenuItemFlags([in] long lId, [in] long lFlags);
};

Definition at line 6431 of file cand_tlb.idl.

Member Function Documentation

◆ AddItem()

HRESULT CanEasy::IMenu::AddItem ( [in] ICanEasyMenuControl pItem)

Adds a new sub menu

◆ DeleteMenu()

HRESULT CanEasy::IMenu::DeleteMenu ( [in] ICanEasyMenuControl pItem)

Deletes that passed sub menu

◆ SetMenuItemFlags()

HRESULT CanEasy::IMenu::SetMenuItemFlags ( [in] long  lId,
[in] long  lFlags 
)

Set the menu item flags by index

◆ SetMenuItemId()

HRESULT CanEasy::IMenu::SetMenuItemId ( [in] long  lCurId,
[in] long  lNewId 
)

Set the menu item id by index

◆ SetMenuItemText()

HRESULT CanEasy::IMenu::SetMenuItemText ( [in] long  lId,
[in] BSTR  sText 
)

Set the menu item text by index

Property Documentation

◆ Item

ICanEasyMenuControl CanEasy::IMenu::Item([in] VARIANT vIndex)
get

Returns a menu item by name or index

◆ MenuId

__int64 CanEasy::IMenu::MenuId
get

Returns the menu identifier

CanEasy::IMenu::SetMenuItemFlags
HRESULT SetMenuItemFlags([in] long lId, [in] long lFlags)
CanEasy::IMenu::Item
ICanEasyMenuControl Item([in] VARIANT vIndex)
CanEasy::IMenu::DeleteMenu
HRESULT DeleteMenu([in] ICanEasyMenuControl *pItem)
CanEasy::IMenu::SetMenuItemId
HRESULT SetMenuItemId([in] long lCurId, [in] long lNewId)
CanEasy::IMenu::MenuId
__int64 MenuId
CanEasy::IMenu::SetMenuItemText
HRESULT SetMenuItemText([in] long lId, [in] BSTR sText)
CanEasy::IMenu::AddItem
HRESULT AddItem([in] ICanEasyMenuControl *pItem)