Compartir a través de


CBasePropertyPage::OnApplyChanges

 
Microsoft DirectShow 9.0

CBasePropertyPage::OnApplyChanges

The OnApplyChanges method is called when the user applies changes to the property page.

Syntax

  virtual HRESULT OnApplyChanges(void);

Return Value

The base-class implementation returns S_OK.

Remarks

The CBasePropertyPage::Apply method calls OnApplyChanges if the CBasePropertyPage::m_bDirty flag is TRUE. Override OnApplyChanges to process the changes and reset m_bDirty to FALSE.

Example Code

HRESULT CMyProp::OnApplyChanges(void)
{
    ASSERT(m_pOwningFilter != NULL);
    return m_pOwningFilter->SetSomeProperty(&m_lNewVal);
}

Requirements

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

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

See Also