mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
minor fixes
svn path=/trunk/; revision=8420
This commit is contained in:
parent
326e514891
commit
02708b9017
1 changed files with 11 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: window.c,v 1.99 2004/02/22 23:40:58 gvg Exp $
|
/* $Id: window.c,v 1.100 2004/02/26 22:52:05 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -1375,8 +1375,14 @@ MapWindowPoints(HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UINT cPoints)
|
||||||
LONG XMove, YMove;
|
LONG XMove, YMove;
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
NtUserGetClientOrigin(hWndFrom, &FromOffset);
|
if(!NtUserGetClientOrigin(hWndFrom, &FromOffset))
|
||||||
NtUserGetClientOrigin(hWndTo, &ToOffset);
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if(!NtUserGetClientOrigin(hWndTo, &ToOffset))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
XMove = FromOffset.x - ToOffset.x;
|
XMove = FromOffset.x - ToOffset.x;
|
||||||
YMove = FromOffset.y - ToOffset.y;
|
YMove = FromOffset.y - ToOffset.y;
|
||||||
|
|
||||||
|
@ -1395,7 +1401,7 @@ MapWindowPoints(HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UINT cPoints)
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
ScreenToClient(HWND hWnd, LPPOINT lpPoint)
|
ScreenToClient(HWND hWnd, LPPOINT lpPoint)
|
||||||
{
|
{
|
||||||
return(MapWindowPoints(NULL, hWnd, lpPoint, 1));
|
return(MapWindowPoints(NULL, hWnd, lpPoint, 1) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1405,7 +1411,7 @@ ScreenToClient(HWND hWnd, LPPOINT lpPoint)
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
ClientToScreen(HWND hWnd, LPPOINT lpPoint)
|
ClientToScreen(HWND hWnd, LPPOINT lpPoint)
|
||||||
{
|
{
|
||||||
return (MapWindowPoints( hWnd, NULL, lpPoint, 1 ));
|
return (MapWindowPoints( hWnd, NULL, lpPoint, 1 ) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue