Implementing feature request "[ 947118 ] Popup menu is hidden under the TOPMOST window"
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@720 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
4433f7f336
commit
33c99dfafe
@ -727,6 +727,14 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
|||||||
if( !( window->Window.Handle ) )
|
if( !( window->Window.Handle ) )
|
||||||
fgError( "Failed to create a window (%s)!", title );
|
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)
|
#if defined(_WIN32_WCE)
|
||||||
ShowWindow( window->Window.Handle, SW_SHOW );
|
ShowWindow( window->Window.Handle, SW_SHOW );
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user