Post a close message instead of destroying the window outright, when the user calls the Close() method. Ensures that the user can stop the exit sequence through the IsClosing event.

This commit is contained in:
the_fiddler 2009-10-07 16:18:48 +00:00
parent 4482a79e84
commit ab138bfb37

View file

@ -789,7 +789,7 @@ namespace OpenTK.Platform.Windows
public void Close()
{
DestroyWindow();
Functions.PostMessage(window.WindowHandle, WindowMessage.CLOSE, IntPtr.Zero, IntPtr.Zero);
}
#endregion