mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +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 estyle;
|
||||
|
||||
if (handlesWindowDecorations)
|
||||
if (handlesWindowDecorations == NO)
|
||||
{
|
||||
wstyle = windowStyleForGSStyle(style);
|
||||
estyle = (style == 0 ? WS_EX_TOOLWINDOW : 0);
|
||||
wstyle = WS_POPUP;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -389,8 +401,8 @@ DWORD windowStyleForGSStyle(unsigned int style)
|
|||
r.top,
|
||||
r.right - r.left,
|
||||
r.bottom - r.top,
|
||||
(HWND) NULL,
|
||||
(HMENU) NULL,
|
||||
(HWND)NULL,
|
||||
(HMENU)NULL,
|
||||
hinstance,
|
||||
(void*)type);
|
||||
NSDebugLLog(@"WTrace", @" num/handle: %d", hwnd);
|
||||
|
|
Loading…
Reference in a new issue