[Bug 1263] - Window resizing does not work (Visual FoxPro)
wine-bugs at winehq.com
wine-bugs at winehq.com
Sat Feb 8 12:38:01 CST 2003
http://bugs.winehq.com/show_bug.cgi?id=1263
------- Additional Comments From dclark at akamail.com 2003-02-08 12:38 -------
Here is a small "fix", but not the right one. It is not clear to me yet whether
the wrong value is being passed to this function, or that a more elaborate
method needs to be used to determine what to do with it. But anyway, the patch
at least demonstrates where the problem is.
Index: dlls/x11drv/winpos.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/winpos.c,v
retrieving revision 1.63
diff -u -r1.63 winpos.c
--- dlls/x11drv/winpos.c 8 Jan 2003 21:09:26 -0000 1.63
+++ dlls/x11drv/winpos.c 8 Feb 2003 18:35:31 -0000
@@ -1901,11 +1903,17 @@
else /* SC_SIZE */
{
if (!thickframe) return;
- if ( hittest && hittest != HTSYSMENU ) hittest += 2;
+ ERR("Hittest A %ld\n", hittest);
+ if ( hittest && hittest != HTSYSMENU )
+ {
+ if (hittest <= WMSZ_BOTTOMRIGHT) hittest += ( HTLEFT - WMSZ_LEFT );
+ else hittest += 2;
+ }
else
{
set_movesize_capture( hwnd );
hittest = start_size_move( hwnd, wParam, &capturePoint, style );
+ ERR("Hittest B %ld\n", hittest);
if (!hittest)
{
set_movesize_capture(0);
@@ -1932,6 +1940,7 @@
}
origRect = sizingRect;
+ ERR("Hittest C %ld\n", hittest);
if (ON_LEFT_BORDER(hittest))
{
mouseRect.left = max( mouseRect.left, sizingRect.right-maxTrack.x );
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1263>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
More information about the wine-bugs
mailing list