Compartir a través de


CBasePropertyPage::OnDisconnect

 
Microsoft DirectShow 9.0

CBasePropertyPage::OnDisconnect

The OnDisconnect method is called when the property page should release the associated object.

Syntax

  virtual HRESULT OnDisconnect(void);

Return Value

The base-class implementation returns S_OK.

Remarks

The CBasePropertyPage::SetObjects method calls the OnDisconnect method. Override OnDisconnect to release any pointers that were obtained in the CBasePropertyPage::OnConnect method.

Example Code

HRESULT CMyProp::OnDisconnect(void)
{
    if (m_pOwningFilter)
    {
        m_pOwningFilter->Release();
        m_pOwningFilter = NULL;
    }
    return S_OK;
}

Requirements

**  Header:** Declared in Cprop.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also