Hello again!
Countdown Live is almost ready to rock! Now I need some help again...
As you know, a PlusWnd has a close button in the top right corner. When you click it, it'll close the window. I now want to stop it closing the window and display a confirmation box if the user really wants to close the window without saving the changes first. When the user chooses Yes, it'll close the window. When the user chooses No, the window has to stay open.
Now, how the hell should I do that?!
code:
Code for the box
//PlusWnd is the options window. (duh)
//"Language.WndOptions['CloseConfirm']" is a string containing the question.
var result = Interop.Call('User32', 'MessageBoxW', PlusWnd.Handle, Language.WndOptions['CloseConfirm'], 'Countdown Live', 0x42124);
if(result == 6) { //Yes
//Close window
} else { //No
//Don't close!!!
}
Thanks in advance!