Compartilhar via


CBasePropertyPage::OnConnect (Windows CE 5.0)

Send Feedback

This method provides an IUnknown pointer to the object associated with the property page.

virtual HRESULT OnConnect(  IUnknown* pUnknown);

Parameters

  • pUnknown
    Pointer to the IUnknown interface of the object.

Return Value

The base-class implementation returns S_OK.

Remarks

The CBasePropertyPage::SetObjects method calls the CBasePropertyPage::OnConnect method. Override this method to store a pointer to the object specified by pUnknown. You can either store the pUnknown pointer itself, or query that pointer for other interfaces. If you store the pUnknown pointer, call IUnknown::AddRef before CBasePropertyPage::OnConnect returns.

In the CBasePropertyPage::OnActivate method, use the stored pointer (or pointers) to retrieve initial values for the dialog properties. In the CBasePropertyPage::OnApplyChanges method, apply any changes back to the object. Release all pointers in the CBasePropertyPage::OnDisconnect method.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

See Also

CBasePropertyPage Class

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.