Export (0) Print
Expand All
Expand Minimize

PROP_ENTRY_EX

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

PROP_ENTRY_EX( szDesc, dispid, clsid, iidDispatch )

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.

Remarks

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( CMyClass )
   PROP_ENTRY_EX( "Caption", DISPID_CAPTION, 
                  CLSID_CMyProps, IID_IMyDual1 )
   PROP_ENTRY_EX( "Enabled", DISPID_ENABLED, 
                  CLSID_CMyProps, IID_IMyDual1 )
   PROP_ENTRY_EX( "Width", DISPID_WIDTH, 
                  CLSID_CMyProps, IID_IMyDual2 )
END_PROP_MAP( )

See Also

Property Map Macros | ATL Macros | PROP_PAGE

Show:
© 2014 Microsoft