Compartilhar via


CSnapInPropertyPageImpl::OnApply

This member function is called when the user clicks the OK or the Apply Now button.

BOOL OnApply( );

Return Value

Nonzero if the changes are accepted; otherwise 0.

Remarks

Before OnApply can be called by the framework, you must have called SetModified and set its parameter to TRUE. This will activate the Apply Now button as soon as the user makes a change on the property page.

Override this member function to specify what action your program takes when the user clicks the Apply Now button. When overriding, the function should return TRUE to accept changes and FALSE to prevent changes from taking effect.

The default implementation of OnApply returns TRUE.

Requirements

Header: atlsnap.h

See Also

Reference

CSnapInPropertyPageImpl Class