Exporter (0) Imprimer
Développer tout
ATL
Développer Réduire

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.

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.

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)
...

};

Ajouts de la communauté

AJOUTER
Afficher:
© 2014 Microsoft