Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

EXTENSION_SNAPIN_DATACLASS

Adds a data member to the snap-in extension data class for an ISnapInItemImpl-derived class.

EXTENSION_SNAPIN_DATACLASS( dataClass )

Parameters

dataClass
[in] The data class of the snap-in extension.

Remarks

This class should also be entered into a snap-in extension data class map. Start your snap-in extension data class map with the BEGIN_EXTENSION_SNAPIN_NODEINFO_MAP macro, add entries for each of your snap-in extension data types with the EXTENSION_SNAPIN_NODEINFO_ENTRY macro, and complete the map with the END_EXTENSION_SNAPIN_NODEINFO_MAP macro.

Example

EXTENSION_SNAPIN_DATACLASS(CMySnapInExtData)
...
BEGIN_EXTENSION_SNAPIN_NODEINFO_MAP(CMySnapInExtData)
    EXTENSION_SNAPIN_NODEINFO_ENTRY(CMySnapInExtData)
END_EXTENSION_SNAPIN_NODEINFO_MAP()

class CMyExtSnapInExtData : public CSnapInItemImpl<CMyExtSnapInExtData>
{
...
};

...

class CMyExtSnapIn : 
   public CSnapInObjectRoot<1, CMyExtSnapIn>,
   public IComponentDataImpl<CMyExtSnapIn, CMyExtSnapInComponent>,
   ...
{
...
EXTENSION_SNAPIN_DATACLASS(CMyExtSnapInExtData)
...

};

See Also

Snap-In Object Macros | ATL Macros | BEGIN_EXTENSION_SNAPIN_NODEINFO_MAP | EXTENSION_SNAPIN_NODEINFO_ENTRY | END_EXTENSION_SNAPIN_NODEINFO_MAP

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.