Stopping onClose Event in Win32Lib

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu