From 762ea8f1bb9b95e2e6bb80c4ae51df479b52b618 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 15 Jan 2008 00:02:58 +0000 Subject: [PATCH] Set window on top during creation. --- Source/OpenTK/Platform/Windows/WinGLNative.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/OpenTK/Platform/Windows/WinGLNative.cs b/Source/OpenTK/Platform/Windows/WinGLNative.cs index cba8e79c..57322a80 100644 --- a/Source/OpenTK/Platform/Windows/WinGLNative.cs +++ b/Source/OpenTK/Platform/Windows/WinGLNative.cs @@ -334,6 +334,8 @@ namespace OpenTK.Platform.Windows "Could not create native window and/or context. Handle: {0}", this.Handle)); + Functions.SetWindowPos(this.Handle, WindowPlacementOptions.TOP, Left, Top, cp.Width, cp.Height, SetWindowPosFlags.SHOWWINDOW); + Debug.Unindent(); }