Export (0) Print
Expand All
ATL
Expand Minimize

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

Community Additions

ADD
Show:
© 2014 Microsoft