From 863879122022f0d0624e1f714fa60c5eba6a9132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 27 Sep 2003 15:41:54 +0000 Subject: [PATCH] Set cursor position and time for posted messages svn path=/trunk/; revision=6165 --- reactos/subsys/win32k/ntuser/message.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/ntuser/message.c b/reactos/subsys/win32k/ntuser/message.c index c097126eb78..61aebf0e6a6 100644 --- a/reactos/subsys/win32k/ntuser/message.c +++ b/reactos/subsys/win32k/ntuser/message.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: message.c,v 1.28 2003/08/19 11:48:49 weiden Exp $ +/* $Id: message.c,v 1.29 2003/09/27 15:41:54 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -415,6 +415,7 @@ NtUserPostMessage(HWND hWnd, MSG Mesg; PUSER_MESSAGE Message; NTSTATUS Status; + LARGE_INTEGER LargeTickCount; if (WM_QUIT == Msg) { @@ -433,6 +434,10 @@ NtUserPostMessage(HWND hWnd, Mesg.message = Msg; Mesg.wParam = wParam; Mesg.lParam = lParam; + Mesg.pt.x = PsGetWin32Process()->WindowStation->SystemCursor.x; + Mesg.pt.y = PsGetWin32Process()->WindowStation->SystemCursor.y; + KeQueryTickCount(&LargeTickCount); + Mesg.time = LargeTickCount.u.LowPart; Message = MsqCreateMessage(&Mesg); MsqPostMessage(Window->MessageQueue, Message); ObmDereferenceObject(Window);