Property sheet before close ask...
Hi !,
I have a property sheet, and I want that when the users presses over the close button of the window, ask if he really want to close the window ( without save, bla bla...), I have tried with OnCancel Method and with Close method, but none of this methods are called when I debug the application, anybody can help me ?
Thanks, Bye !
Braulio
Re: Property sheet before close ask...
In CPropertyPage there is a overridable called OnQueryCancel. This is called by the propertysheet when a user click the Cancel / Close button. If you catch this for each of your property pages you could call into a function in your CPropertySheet class to do some validation before closing.