Condividi tramite


PROP_ENTRY_TYPE_EX

Similar to PROP_ENTRY_TYPE, but allows you specify a particular IID if your object supports multiple dual interfaces.

PROP_ENTRY_TYPE_EX( 
   szDesc, 
   dispid, 
   clsid, 
   iidDispatch, 
   vt 
)

Parameters

  • szDesc
    [in] The property description.

  • dispid
    [in] The property's DISPID.

  • clsid
    [in] The CLSID of the associated property page. Use the special value CLSID_NULL for a property that does not have an associated property page.

  • iidDispatch
    [in] The IID of the dual interface defining the property.

  • vt
    [in] The property's type.

Remarks

The PROP_ENTRY_EX macro was insecure and deprecated. It has been replaced with PROP_ENTRY_TYPE_EX.

The BEGIN_PROP_MAP macro marks the beginning of the property map; the END_PROP_MAP macro marks the end.

Example

The following example groups entries for IMyDual1 followed by an entry for IMyDual2. Grouping by dual interface will improve performance.

BEGIN_PROP_MAP(CAtlEdit)
   PROP_ENTRY_TYPE_EX("Caption", DISPID_CAPTION, CLSID_MyPropPage2, IID_IMyDual1, VT_BSTR)
   PROP_ENTRY_TYPE_EX("Enabled", DISPID_ENABLED, CLSID_MyPropPage2, IID_IMyDual1, VT_BOOL)
   PROP_ENTRY_TYPE_EX("Width", DISPID_DRAWWIDTH, CLSID_MyPropPage2, IID_IMyDual2, VT_UINT)
END_PROP_MAP()

Requirements

Header: atlcom.h

See Also

Reference

PROP_PAGE

PROP_ENTRY_INTERFACE

PROP_ENTRY_INTERFACE_EX

PROP_ENTRY_INTERFACE_CALLBACK

PROP_ENTRY_INTERFACE_CALLBACK_EX

PROP_ENTRY_TYPE

Other Resources

Property Map Macros

ATL Macros