Microsoft DirectX 9.0


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


virtual HRESULT OnApplyChanges(void);

Return Value

The base-class implementation returns S_OK.


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);

See Also