From 36523acd8b1d64e878996fef239bb5618ceb03a5 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Tue, 18 Sep 2007 03:50:24 +0000 Subject: [PATCH] Implementing feature request "[ 947118 ] Popup menu is hidden under the TOPMOST window" git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@720 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_window.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freeglut_window.c b/src/freeglut_window.c index 7236c91..91d4a71 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -727,6 +727,14 @@ void fgOpenWindow( SFG_Window* window, const char* title, if( !( window->Window.Handle ) ) fgError( "Failed to create a window (%s)!", title ); + /* Make a menu window always on top - fix Feature Request 947118 */ + if( window->IsMenu || gameMode ) + SetWindowPos( + window->Window.Handle, + HWND_TOPMOST, + 0, 0, 0, 0, + SWP_NOMOVE | SWP_NOSIZE + ); #if defined(_WIN32_WCE) ShowWindow( window->Window.Handle, SW_SHOW ); #else -- 1.7.10.4