CAxWindow::QueryControl

HRESULT QueryControl( REFIID iid, void** ppUnk );

template <class Q>
HRESULT QueryControl( Q** ppUnk );

Return Value

A standard HRESULT value.

Parameters

iid

[in] Specifies the IID of the control’s interface.

ppUnk

[out] A pointer to the IUnknown interface of the control. In the template version of this function, there is no need for a reference ID and the interface can be specified.

Q

[in] The interface that is being queried for.

Remarks

Call this function to retrieve the IUnknown interface of the hosted control.

CAxWindow OverviewClass Members

See Also

CAxWindow::QueryHost