CPropertyContainer::RegisterProperty

Register a property with the container.

Defined in: PropContainer.h

Syntax

bool RegisterProperty(IProperty* pProp)

bool RegisterProperty(IProperty* pProp, const _Accessor& accessor)

bool RegisterProperty(const PropertyId id, LPCTSTR lpszName, LPCTSTR lpszDesc, const _Accessor& accessor = _Accessor(), VARTYPE type = VT_EMPTY, DWORD dwStyle = PROP_DIRECT, IEnumeration *pIEnumeration = NULL)

bool RegisterProperty(const PropertyId id, UINT nIdName, UINT nIdDesc, const _Accessor& accessor = _Accessor(), VARTYPE type = VT_EMPTY, DWORD dwStyle = PROP_DIRECT, IEnumeration *pIEnumeration = NULL)

Return Value

Returns true if property successfully registered, otherwise false.

Comments

There are several different overloaded versions of this function. All of the RegisterProperty functions wind up adding an entry to the property map.