다음을 통해 공유


BEGIN_PROPERTY_MAP

Beginning with ATL 3.0, BEGIN_PROPERTY_MAP is replaced by BEGIN_PROP_MAP. BEGIN_PROPERTY_MAP could be used only with controls, and it automatically saved out and read in the extent, or dimensions, of the map. This limitation no longer exists in ATL 3.0, and no need exists for reading in the property map's extent.

For backward compatibility, ATL defines the following:

#define BEGIN_PROPERTY_MAP(theClass) \
   typedef _ATL_PROP_NOTIFY_EVENT_CLASS __ATL_PROP_NOTIFY_EVENT_CLASS; \
   typedef theClass _PropMapClass; \
   static ATL_PROPMAP_ENTRY* GetPropertyMap()\
   {\
      static ATL_PROPMAP_ENTRY pPropMap[] = \
      { \
         {OLESTR("_cx"), 0, &CLSID_NULL, NULL, offsetof(_PropMapClass, m_sizeExtent.cx), sizeof(long), VT_UI4}, \
         {OLESTR("_cy"), 0, &CLSID_NULL, NULL, offsetof(_PropMapClass, m_sizeExtent.cy), sizeof(long), VT_UI4},

Requirements

Header: atlcom.h

See Also

Concepts

Obsolete ATL Topics