PROP_DATA_ENTRY
TOC
Collapse the table of content
Expand the table of content
Importante Es posible que este documento no represente los procedimientos recomendados para el desarrollo actual. Puede que los vínculos a las descargas y otros recursos ya no sean válidos. Encontrará aquí la versión que se recomienda en la actualidad. ArchiveDisclaimer

PROP_DATA_ENTRY

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


PROP_DATA_ENTRY( 
      szDesc, 
      member, 
      vt  
)

Parameters

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(CMyControl)
   PROP_DATA_ENTRY("_cx", m_sizeExtent.cx, VT_UI4)
   PROP_DATA_ENTRY("_cy", m_sizeExtent.cy, VT_UI4)
END_PROP_MAP()

// another example
BEGIN_PROP_MAP(CMyClass)
   PROP_DATA_ENTRY("Width", m_nWidth, VT_UI4)
   PROP_DATA_ENTRY("Height", m_nHeight, VT_UI4)
END_PROP_MAP()
Mostrar:
© 2016 Microsoft