|Project:||The Open Toolkit library|
I need to hack GameWindow.Run() if I want to create a GameWindow which is hidden during load time. I show a smooth progress bar using Forms at load time.
I managed to get GameWindow created hidden, and get it visible later. But the window does not show up top most, no matter what functions I call. I tried ShowWindow(), SetFocus(), BringWindowToTop(), SetForegroundWindow(), even SwitchToThisWindow(), on WinGLNative.Visible setter, but the GameWindow still remains behind Windows folder window where I click to start my app. I can make the window show on top using ExtendedWindowStyle.Topmost but that is not an option. Any ideas?