DECLARE_AGGREGATABLE

DECLARE_AGGREGATABLE( x )

Parameters

x

[in] The name of the class you are defining as aggregatable.

Remarks

Specifies that your object can be aggregated. CComCoClass contains this macro to specify the default aggregation model. To override this default, specify either the DECLARE_NOT_AGGREGATABLE or DECLARE_ONLY_AGGREGATABLE macro in your class definition. For example:

class CMyClass : public CComCoClass< .. >, ...
{
public:
   DECLARE_NOT_AGGREGATABLE(CMyClass)
   ...
};

ATL Macros and Global Functions