CanEasy COM-Help
CanEasy::_ICanEasyItemComEvents Interface Reference

Detailed Description

Events provided by a CanEasyItem

dispinterface _ICanEasyItemComEvents
{
properties:
methods:
HRESULT IsSetTextAllowed([in] IBoolValue *pAllow);
HRESULT OnTextChanged();
HRESULT OnFillMenu([in] IMenu *pMenu);
HRESULT OnMenuCommand(long lCommand);
HRESULT OnExtendChildMenu([in] IMenu *pMenu, [in] ICanEasyItemCom *pItem);
HRESULT OnPreChildMenuCommand(long lCommand, [in] ICanEasyItemCom *pItem);
HRESULT OnKeyDown(long lKey);
HRESULT OnDoubleClick();
HRESULT IsSetTextAllowedSync([in] IBoolValue *pAllow);
HRESULT OnTextChangedSync();
HRESULT OnFillMenuSync([in] IMenu *pMenu);
HRESULT OnMenuCommandSync(long lCommand);
HRESULT OnExtendChildMenuSync([in] IMenu *pMenu, [in] ICanEasyItemCom *pItem);
HRESULT OnPreChildMenuCommandSync(long lCommand, [in] ICanEasyItemCom *pItem);
HRESULT OnKeyDownSync(long lCommand);
HRESULT OnDoubleClickSync();
};

Definition at line 6660 of file cand_tlb.idl.

Member Function Documentation

◆ IsSetTextAllowed()

HRESULT CanEasy::_ICanEasyItemComEvents::IsSetTextAllowed ( [in] IBoolValue pAllow)

Called when user wants to change the text

Parameters
pAllowSet to False to deny text change

◆ IsSetTextAllowedSync()

HRESULT CanEasy::_ICanEasyItemComEvents::IsSetTextAllowedSync ( [in] IBoolValue pAllow)

Called when user wants to change the text for main thread

Parameters
pAllowSet to False to deny text change

◆ OnDoubleClick()

HRESULT CanEasy::_ICanEasyItemComEvents::OnDoubleClick ( )

Called on mouse double click

◆ OnDoubleClickSync()

HRESULT CanEasy::_ICanEasyItemComEvents::OnDoubleClickSync ( )

Called on mouse double click (from main thread)

◆ OnExtendChildMenu()

HRESULT CanEasy::_ICanEasyItemComEvents::OnExtendChildMenu ( [in] IMenu pMenu,
[in] ICanEasyItemCom pItem 
)

Allows extending the context menu of children

◆ OnExtendChildMenuSync()

HRESULT CanEasy::_ICanEasyItemComEvents::OnExtendChildMenuSync ( [in] IMenu pMenu,
[in] ICanEasyItemCom pItem 
)

Allows extending the context menu of children (from main thread)

◆ OnFillMenu()

HRESULT CanEasy::_ICanEasyItemComEvents::OnFillMenu ( [in] IMenu pMenu)

Called when context menu is shown

◆ OnFillMenuSync()

HRESULT CanEasy::_ICanEasyItemComEvents::OnFillMenuSync ( [in] IMenu pMenu)

Called when context menu is shown (from main thread)

◆ OnKeyDown()

HRESULT CanEasy::_ICanEasyItemComEvents::OnKeyDown ( long  lKey)

Called on key down

◆ OnKeyDownSync()

HRESULT CanEasy::_ICanEasyItemComEvents::OnKeyDownSync ( long  lCommand)

Called on key down (from main thread)

◆ OnMenuCommand()

HRESULT CanEasy::_ICanEasyItemComEvents::OnMenuCommand ( long  lCommand)

Called when context menu item was selected

◆ OnMenuCommandSync()

HRESULT CanEasy::_ICanEasyItemComEvents::OnMenuCommandSync ( long  lCommand)

Called when context menu item was selected (from main thread)

◆ OnPreChildMenuCommand()

HRESULT CanEasy::_ICanEasyItemComEvents::OnPreChildMenuCommand ( long  lCommand,
[in] ICanEasyItemCom pItem 
)

Allows overwriting the open menu from children

◆ OnPreChildMenuCommandSync()

HRESULT CanEasy::_ICanEasyItemComEvents::OnPreChildMenuCommandSync ( long  lCommand,
[in] ICanEasyItemCom pItem 
)

Allows overwriting the open menu from children (from main thread)

◆ OnTextChanged()

HRESULT CanEasy::_ICanEasyItemComEvents::OnTextChanged ( )

Called when text has changed

◆ OnTextChangedSync()

HRESULT CanEasy::_ICanEasyItemComEvents::OnTextChangedSync ( )

Called when context menu is shown (from main thread)

CanEasy::_ICanEasyItemComEvents::OnTextChanged
HRESULT OnTextChanged()
CanEasy::_ICanEasyItemComEvents::OnKeyDown
HRESULT OnKeyDown(long lKey)
CanEasy::_ICanEasyItemComEvents::OnPreChildMenuCommandSync
HRESULT OnPreChildMenuCommandSync(long lCommand, [in] ICanEasyItemCom *pItem)
CanEasy::_ICanEasyItemComEvents::OnExtendChildMenuSync
HRESULT OnExtendChildMenuSync([in] IMenu *pMenu, [in] ICanEasyItemCom *pItem)
CanEasy::_ICanEasyItemComEvents::IsSetTextAllowed
HRESULT IsSetTextAllowed([in] IBoolValue *pAllow)
CanEasy::_ICanEasyItemComEvents::OnExtendChildMenu
HRESULT OnExtendChildMenu([in] IMenu *pMenu, [in] ICanEasyItemCom *pItem)
CanEasy::_ICanEasyItemComEvents::OnTextChangedSync
HRESULT OnTextChangedSync()
CanEasy::_ICanEasyItemComEvents::OnPreChildMenuCommand
HRESULT OnPreChildMenuCommand(long lCommand, [in] ICanEasyItemCom *pItem)
CanEasy::_ICanEasyItemComEvents::OnKeyDownSync
HRESULT OnKeyDownSync(long lCommand)
CanEasy::_ICanEasyItemComEvents::OnMenuCommandSync
HRESULT OnMenuCommandSync(long lCommand)
CanEasy::_ICanEasyItemComEvents::IsSetTextAllowedSync
HRESULT IsSetTextAllowedSync([in] IBoolValue *pAllow)
CanEasy::_ICanEasyItemComEvents::OnFillMenuSync
HRESULT OnFillMenuSync([in] IMenu *pMenu)
CanEasy::_ICanEasyItemComEvents::OnFillMenu
HRESULT OnFillMenu([in] IMenu *pMenu)
CanEasy::_ICanEasyItemComEvents::OnMenuCommand
HRESULT OnMenuCommand(long lCommand)
CanEasy::_ICanEasyItemComEvents::OnDoubleClick
HRESULT OnDoubleClick()
CanEasy::_ICanEasyItemComEvents::OnDoubleClickSync
HRESULT OnDoubleClickSync()