Tidied a little

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21008 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-03-30 14:15:52 +00:00
parent 034a3f82e2
commit e432f0e3c8

View file

@ -364,14 +364,26 @@ DWORD windowStyleForGSStyle(unsigned int style)
DWORD wstyle; DWORD wstyle;
DWORD estyle; DWORD estyle;
if (handlesWindowDecorations) if (handlesWindowDecorations == NO)
{ {
wstyle = windowStyleForGSStyle(style); wstyle = WS_POPUP;
estyle = (style == 0 ? WS_EX_TOOLWINDOW : 0);
} }
else else
{ {
wstyle = WS_POPUP; wstyle = windowStyleForGSStyle(style);
}
if ((style & NSMiniaturizableWindowMask)
&& flags.useWMTaskBar == YES)
{
estyle = 0;
}
else
{
/*
* Not miniaturisable ...
* make it a toolwindow so it doesn't appear in the taskbar.
*/
estyle = WS_EX_TOOLWINDOW; estyle = WS_EX_TOOLWINDOW;
} }
@ -389,8 +401,8 @@ DWORD windowStyleForGSStyle(unsigned int style)
r.top, r.top,
r.right - r.left, r.right - r.left,
r.bottom - r.top, r.bottom - r.top,
(HWND) NULL, (HWND)NULL,
(HMENU) NULL, (HMENU)NULL,
hinstance, hinstance,
(void*)type); (void*)type);
NSDebugLLog(@"WTrace", @" num/handle: %d", hwnd); NSDebugLLog(@"WTrace", @" num/handle: %d", hwnd);