Resolve [ 853044 ] FreeGLUT menus on Win32 in task bar and ALT-TAB list

CreateWindowEx(WS_EX_TOOLWINDOW,...) extended style suppresses the popup menu window from the taskbar or ALT-TAB list


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@474 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
nigels 2004-03-10 05:11:04 +00:00
parent 8ef6187d85
commit c203af6503

View File

@ -481,7 +481,8 @@ void fgOpenWindow( SFG_Window* window, const char* title,
#elif TARGET_HOST_WIN32 #elif TARGET_HOST_WIN32
WNDCLASS wc; WNDCLASS wc;
int flags; DWORD flags;
DWORD exFlags = 0;
ATOM atom; ATOM atom;
freeglut_assert_ready; freeglut_assert_ready;
@ -534,14 +535,18 @@ void fgOpenWindow( SFG_Window* window, const char* title,
flags = WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE; flags = WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE;
if ( window->IsMenu ) if ( window->IsMenu )
{
flags |= WS_POPUP; flags |= WS_POPUP;
exFlags |= WS_EX_TOOLWINDOW;
}
else if( window->Parent == NULL ) else if( window->Parent == NULL )
flags |= WS_OVERLAPPEDWINDOW; flags |= WS_OVERLAPPEDWINDOW;
else else
flags |= WS_CHILD; flags |= WS_CHILD;
} }
window->Window.Handle = CreateWindow( window->Window.Handle = CreateWindowEx(
exFlags,
"FREEGLUT", "FREEGLUT",
title, title,
flags, flags,