Microsoft DirectX 8.1 (C++)

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

See Also