Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Example

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

Requirements

Header: atlcom.h

Show: