Поделиться через


PROP_DATA_ENTRY

Indicates the extent, or dimensions, of an ActiveX control.

PROP_DATA_ENTRY( 
      szDesc, 
      member, 
      vt  
)

Параметры

  • szDesc
    [in] The property description.

  • member
    [in] The data member containing the extent; for example, m_sizeExtent.

  • vt
    [in] Specifies the VARIANT type of the property.

Заметки

This macro causes the specified data member to be persisted.

When you create an ActiveX control, the wizard inserts this macro after the property map macro BEGIN_PROP_MAP and before the property map macro END_PROP_MAP.

Пример

In the following example, the extent of the object (m_sizeExtent) is being persisted.

BEGIN_PROP_MAP(CMyWindow)
   PROP_DATA_ENTRY("_cx", m_sizeExtent.cx, VT_UI4)
   PROP_DATA_ENTRY("_cy", m_sizeExtent.cy, VT_UI4)
END_PROP_MAP()
BEGIN_PROP_MAP(CMyCompositeCtrl)
   PROP_DATA_ENTRY("Width", m_nWidth, VT_UI4)
   PROP_DATA_ENTRY("Height", m_nHeight, VT_UI4)
END_PROP_MAP()

Требования

Header: atlcom.h

См. также

Основные понятия

Property Map Macros

ATL Macros