Поделиться через


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  
)

Параметры

  • 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.

Заметки

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

Пример

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_EX("Caption", DISPID_CAPTION, CLSID_MyPropPage2, IID_IMyDual1)
   PROP_ENTRY_EX("Enabled", DISPID_ENABLED, CLSID_MyPropPage2, IID_IMyDual1)
   PROP_ENTRY_EX("Width", DISPID_DRAWWIDTH, CLSID_MyPropPage2, IID_IMyDual2)
END_PROP_MAP()

Требования

Header: atlcom.h

См. также

Основные понятия

Property Map Macros

ATL Macros

PROP_PAGE