Share via


CBasePropertyPage::OnConnect

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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

Windows Embedded CE Windows CE 2.12 and later
Windows Mobile Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

CBasePropertyPage Class