CreateWindowEx(WS_EX_TOOLWINDOW,...) extended style suppresses the popup menu window from the taskbar or ALT-TAB list
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@474
7f0cb862-5218-0410-a997-
914c9d46530a
#elif TARGET_HOST_WIN32
WNDCLASS wc;
- int flags;
+ DWORD flags;
+ DWORD exFlags = 0;
ATOM atom;
freeglut_assert_ready;
flags = WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE;
if ( window->IsMenu )
- flags |= WS_POPUP ;
+ {
+ 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,