[ros-diffs] [tretiakov] 24707: For windows with WS_EX_DLGMODALFRAME sysmenu can be opened only by right mouse click ( new fix, no movable buttons in calculator)
tretiakov at svn.reactos.org
tretiakov at svn.reactos.org
Thu Nov 9 19:34:37 CET 2006
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/nonclient.c?rev=24707&r1=24706&r2=24707&view=diff
==============================================================================
--- 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;
More information about the Ros-diffs
mailing list