Author: tretiakov
Date: Thu Nov 9 21:34:36 2006
New Revision: 24707
URL:
http://svn.reactos.org/svn/reactos?rev=24707&view=rev
Log:
For windows with WS_EX_DLGMODALFRAME sysmenu can be opened only by right mouse click ( new
fix, no movable buttons in calculator)
Modified:
trunk/reactos/dll/win32/user32/windows/nonclient.c
Modified: trunk/reactos/dll/win32/user32/windows/nonclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/n…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/nonclient.c (original)
+++ trunk/reactos/dll/win32/user32/windows/nonclient.c Thu Nov 9 21:34:36 2006
@@ -751,11 +751,12 @@
}
else
{
- WindowRect.left += GetSystemMetrics(SM_CXSIZE);
+ if(!(ExStyle & WS_EX_DLGMODALFRAME))
+ WindowRect.left += GetSystemMetrics(SM_CXSIZE);
WindowRect.right -= GetSystemMetrics(SM_CXSIZE);
}
}
- if (Point.x <= WindowRect.left)
+ if (Point.x < WindowRect.left)
return HTSYSMENU;
if (WindowRect.right <= Point.x)
return HTCLOSE;