CPropertyPage::CancelToClose

This method is called after an unrecoverable change has been made to the data in a page of a modal property sheet. This method will change the OK button to Close and disable the Cancel button. This change alerts the user that a change is permanent and the modifications cannot be canceled.

The CancelToClose method does nothing in a modeless property sheet, because a modeless property sheet does not have a Cancel button by default.

At a Glance

Header file: Afxdlgs.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

void CancelToClose( );

See Also

CPropertyPage::OnKillActive, CPropertyPage::SetModified