CanEasy COM-Help
CanEasy::ICanEasyItemCom Interface Reference

Inherits IDispatch.

Detailed Description

CanEasyItem is shown in the tree and list view and can be shown to interact with the user

interface ICanEasyItemCom : IDispatch //Not ITransmissionItem or IDatabaseItem, because item can have no corresponded database object
{
HRESULT StringType([out, retval] BSTR *pText);
HRESULT StringRef([out, retval] BSTR *pText);
HRESULT Image([out, retval] long *pIndex);
HRESULT Image([in] long nIndex);
HRESULT Text([out, retval] BSTR *pText);
HRESULT Text([in] BSTR sNewText);
HRESULT Children([out, retval] ICanEasyItemComCol**);
HRESULT IsAddChildAllowed([in] ICanEasyItemCom *pItem, [in, defaultvalue(1)] VARIANT_BOOL boRecursive, [out, retval] VARIANT_BOOL*);
HRESULT Delete();
HRESULT SetImageByName([in] BSTR sImageName);
HRESULT Menu([out, retval] IMenu **pMenu);
};

Definition at line 6589 of file cand_tlb.idl.

Member Function Documentation

◆ Delete()

HRESULT CanEasy::ICanEasyItemCom::Delete ( )

Deletes this CanEasyItem

◆ IsAddChildAllowed()

HRESULT CanEasy::ICanEasyItemCom::IsAddChildAllowed ( [in] ICanEasyItemCom pItem,
[in, defaultvalue(1)] VARIANT_BOOL  boRecursive,
[out, retval] VARIANT_BOOL *   
)

Returns true if CanEasyItem can be inserted as child.

Called during drag & drop operation

Parameters
pItemCanEasyItem to insert
boRecursiveTrue if all children have to be scanned for valid items
Returns
True if insertion is possible

◆ SetImageByName()

HRESULT CanEasy::ICanEasyItemCom::SetImageByName ( [in] BSTR  sImageName)

Sets image by name

Property Documentation

◆ Children

ICanEasyItemComCol CanEasy::ICanEasyItemCom::Children
get

Returns collection with contained CanEasyItems

◆ Image

long CanEasy::ICanEasyItemCom::Image
getset

Image index to show in tree

◆ Menu

IMenu CanEasy::ICanEasyItemCom::Menu
get

Returns the menu

◆ StringRef

BSTR CanEasy::ICanEasyItemCom::StringRef
get

Returns the string reference (path) of the connected database item

◆ StringType

BSTR CanEasy::ICanEasyItemCom::StringType
get

Return the type string of the connected database item

◆ Text

BSTR CanEasy::ICanEasyItemCom::Text
getset

Text showed in tree

CanEasy::ICanEasyItemCom::IsAddChildAllowed
HRESULT IsAddChildAllowed([in] ICanEasyItemCom *pItem, [in, defaultvalue(1)] VARIANT_BOOL boRecursive, [out, retval] VARIANT_BOOL *)
Returns true if CanEasyItem can be inserted as child.
CanEasy::ICanEasyItemCom::Menu
IMenu Menu
CanEasy::ICanEasyItemCom::SetImageByName
HRESULT SetImageByName([in] BSTR sImageName)
CanEasy::ICanEasyItemCom::Delete
HRESULT Delete()
CanEasy::ICanEasyItemCom::StringRef
BSTR StringRef
CanEasy::ICanEasyItemCom::Image
long Image
CanEasy::ICanEasyItemCom::StringType
BSTR StringType
CanEasy::ICanEasyItemCom::Text
BSTR Text
CanEasy::ICanEasyItemCom::Children
ICanEasyItemComCol Children