The PSM_CANCELTOCLOSE message disables the Cancel button and changes the text of the OK button to "Close." An application sends this message after applying a change that cannot be canceled. You can send this message explicitly or by using the PropSheet_CancelToClose macro.
PSM_CANCELTOCLOSE
wParam = 0;
lParam = 0;
Return Values
No return value.
See Also