mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
back/win32: Fix for bug #29709: Windows: Maximize button in a window title bar is always grayed out
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30933 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6ebad82029
commit
a27ce98ff1
3 changed files with 9 additions and 7 deletions
|
@ -1,3 +1,10 @@
|
|||
2010-07-06 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/win32/WIN32Server.m:
|
||||
* Source/win32/w32_movesize.m:
|
||||
Fix for bug #29709: Windows: Maximize button in a window title bar is
|
||||
always grayed out
|
||||
|
||||
2010-07-06 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/win32/WIN32Server.m: Tweak the conditions for incrementing the
|
||||
|
|
|
@ -459,7 +459,7 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
|
|||
wstyle |= WS_MINIMIZEBOX + WS_SYSMENU;
|
||||
|
||||
if ((style & NSResizableWindowMask) == NSResizableWindowMask)
|
||||
wstyle |= WS_SIZEBOX;
|
||||
wstyle |= WS_SIZEBOX + WS_MAXIMIZEBOX;
|
||||
|
||||
if (((style & NSMiniWindowMask) == NSMiniWindowMask)
|
||||
|| ((style & NSIconWindowMask) == NSIconWindowMask))
|
||||
|
|
|
@ -69,12 +69,6 @@
|
|||
}
|
||||
break;
|
||||
|
||||
case SIZE_MAXIMIZED:
|
||||
{
|
||||
// stubbed for future development
|
||||
}
|
||||
break;
|
||||
|
||||
case SIZE_MAXSHOW:
|
||||
{
|
||||
// stubbed for future development
|
||||
|
@ -91,6 +85,7 @@
|
|||
}
|
||||
break;
|
||||
|
||||
case SIZE_MAXIMIZED:
|
||||
case SIZE_RESTORED:
|
||||
{
|
||||
NSPoint eventLocation;
|
||||
|
|
Loading…
Reference in a new issue