共用方式為


IPerPropertyBrowsingImpl 類別

這個類別會實作 IUnknown 並允許用戶端存取物件屬性頁中的資訊。

重要

這個類別及其成員不能用於在Windows 執行階段中執行的應用程式。

語法

template <class T>
class ATL_NO_VTABLE IPerPropertyBrowsingImpl :
    public IPerPropertyBrowsing

參數

T
您的類別衍生自 IPerPropertyBrowsingImpl

成員

公用方法

名稱 描述
IPerPropertyBrowsingImpl::GetDisplayString 擷取描述指定屬性的字串。
IPerPropertyBrowsingImpl::GetPredefinedStrings 擷取對應至指定屬性可接受之值的字串陣列。
IPerPropertyBrowsingImpl::GetPredefinedValue 擷取 VARIANT,其中包含指定 DISPID 所識別的屬性值。 DISPID 與從 GetPredefinedStrings 擷取的字串名稱相關聯。 ATL 實作會傳回E_NOTIMPL。
IPerPropertyBrowsingImpl::MapPropertyToPage 擷取與指定屬性相關聯之屬性頁的 CLSID。

備註

IPerPropertyBrowsing 介面可讓用戶端存取物件屬性頁中的資訊。 類別 IPerPropertyBrowsingImpl 提供這個介面的預設實作,並藉由將資訊傳送至偵錯組建中的傾印裝置來實 IUnknown 作。

注意

如果您使用 Microsoft Access 作為容器應用程式,則必須從 IPerPropertyBrowsingImpl 衍生類別。 否則,Access 將不會載入您的控制項。

相關文章 ATL 教學 課程 建立 ATL 專案

繼承階層架構

IPerPropertyBrowsing

IPerPropertyBrowsingImpl

需求

標頭: atlctl.h

IPerPropertyBrowsingImpl::GetDisplayString

擷取描述指定屬性的字串。

STDMETHOD(GetDisplayString)(
    DISPID dispID,
    BSTR* pBstr);

備註

請參閱 Windows SDK 中的 IPerPropertyBrowsing::GetDisplayString

IPerPropertyBrowsingImpl::GetPredefinedStrings

以零個專案填滿每個陣列。

STDMETHOD(GetPredefinedStrings)(
    DISPID dispID,
    CALPOLESTR* pCaStringsOut,
    CADWORD* pCaCookiesOut);

傳回值

ATL 的 GetPredefinedValue 實作 會傳回E_NOTIMPL。

備註

請參閱 Windows SDK 中的 IPerPropertyBrowsing::GetPredefinedStrings

IPerPropertyBrowsingImpl::GetPredefinedValue

擷取 VARIANT,其中包含指定 DISPID 所識別的屬性值。 DISPID 與從 GetPredefinedStrings 擷取的字串名稱相關聯。

STDMETHOD(GetPredefinedValue)(
    DISPID dispID,
    DWORD dwCookie,
    VARIANT* pVarOut);

傳回值

傳回E_NOTIMPL。

備註

ATL 的 GetPredefinedStrings 實作不會擷取任何對應的字串。

請參閱 Windows SDK 中的 IPerPropertyBrowsing::GetPredefinedValue

IPerPropertyBrowsingImpl::MapPropertyToPage

擷取與指定屬性相關聯之屬性頁的 CLSID。

STDMETHOD(MapPropertyToPage)(
    DISPID dispID,
    CLSID* pClsid);

備註

ATL 會使用 物件的屬性對應來取得這項資訊。

請參閱 Windows SDK 中的 IPerPropertyBrowsing::MapPropertyToPage

另請參閱

IPropertyPageImpl 類別
ISpecifyPropertyPagesImpl 類別
類別概觀