# IPropertyPage::IsPageDirty

Indicates whether the property page has changed its state since activation or since the last call to IPropertyPage::Apply. The property sheet uses this information to enable or disable the Apply button in the dialog box. There is no need to apply the values on a property page if those values are already current with the underlying objects.

HRESULT IsPageDirty(void);

Return Values

S_OK
  The value state of the property page is dirty, that is, it has changed and is different from the state of the objects.
S_FALSE
  The value state of the page has not changed and is current with that of the objects.

Remarks

#### Notes to Implementers

This method has no reason to return an error code, since the inability to determine if the page is dirty should return S_OK as a default. In this way, the user has a chance to update the values. The page should not return an error code, since an error code is not the same as S_OK and would indicate that the page is not dirty. Then, the property frame could potentially disable the Apply button, not allowing the user to make sure that the property values are current.

See Also

IPropertyPage::Apply