mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Set cursor position and time for posted messages
svn path=/trunk/; revision=6165
This commit is contained in:
parent
c434e40598
commit
8638791220
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue