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:
parent
8ef6187d85
commit
c203af6503
@ -481,7 +481,8 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
||||
#elif TARGET_HOST_WIN32
|
||||
|
||||
WNDCLASS wc;
|
||||
int flags;
|
||||
DWORD flags;
|
||||
DWORD exFlags = 0;
|
||||
ATOM atom;
|
||||
|
||||
freeglut_assert_ready;
|
||||
@ -534,14 +535,18 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
||||
flags = WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE;
|
||||
|
||||
if ( window->IsMenu )
|
||||
{
|
||||
flags |= WS_POPUP;
|
||||
exFlags |= WS_EX_TOOLWINDOW;
|
||||
}
|
||||
else if( window->Parent == NULL )
|
||||
flags |= WS_OVERLAPPEDWINDOW;
|
||||
else
|
||||
flags |= WS_CHILD;
|
||||
}
|
||||
|
||||
window->Window.Handle = CreateWindow(
|
||||
window->Window.Handle = CreateWindowEx(
|
||||
exFlags,
|
||||
"FREEGLUT",
|
||||
title,
|
||||
flags,
|
||||
|
Reference in New Issue
Block a user