mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 04:11:28 +00:00
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:
parent
034a3f82e2
commit
e432f0e3c8
1 changed files with 18 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue