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:
Eric Wasylishen 2010-07-07 06:00:51 +00:00
parent 6ebad82029
commit a27ce98ff1
3 changed files with 9 additions and 7 deletions

View file

@ -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

View file

@ -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))

View file

@ -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;