Stopping onClose Event in Win32Lib
- Posted by Smith Ray <Ray.Smith at FUJITSU.COM.AU> Feb 19, 1999
- 442 views
Hi all, I am writing a simple Win32 application and want to be able to ask the user a "yes" "no" question if they have made changes to their work when clicking on the "x" in the top right hand corner of the window. Like all good programs "Save? Yes / No / Cancel". I can use the "onClose" event to process a procedure when the user clicks on the "x" but I don't know how to cancel the even if the user wants to click on "Cancel" meaning I do not want to close. Any help will be very much appreciated. Thanks Ray Smith