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 b896d8952c
commit 01a8748416

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