PROP_ENTRY_EX

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

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

The BEGIN_PROP_MAP macro marks the beginning of the property map; the END_PROPERTY_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_PROPERTY_MAP( )

ATL Macros and Global Functions

See Also

PROP_PAGE