mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 16:22:58 +00:00
Fixed double clicks.
svn path=/trunk/; revision=7231
This commit is contained in:
parent
8b52e2dfa1
commit
9aa489b9bf
1 changed files with 6 additions and 16 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: msgqueue.c,v 1.56 2003/12/21 21:21:33 weiden Exp $
|
/* $Id: msgqueue.c,v 1.57 2003/12/25 12:26:35 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -198,7 +198,7 @@ MsqIsDblClk(PWINDOW_OBJECT Window, PUSER_MESSAGE Message, BOOL Remove)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
CurInfo = &WinStaObject->SystemCursor;
|
CurInfo = &WinStaObject->SystemCursor;
|
||||||
Res = (Window->Self == (HWND)CurInfo->LastClkWnd) &&
|
Res = (Message->Msg.hwnd == (HWND)CurInfo->LastClkWnd) &&
|
||||||
((Message->Msg.time - CurInfo->LastBtnDown) < CurInfo->DblClickSpeed);
|
((Message->Msg.time - CurInfo->LastBtnDown) < CurInfo->DblClickSpeed);
|
||||||
if(Res)
|
if(Res)
|
||||||
{
|
{
|
||||||
|
@ -212,22 +212,12 @@ MsqIsDblClk(PWINDOW_OBJECT Window, PUSER_MESSAGE Message, BOOL Remove)
|
||||||
(dY <= CurInfo->DblClickHeight);
|
(dY <= CurInfo->DblClickHeight);
|
||||||
|
|
||||||
if(Remove)
|
if(Remove)
|
||||||
{
|
|
||||||
if(Res)
|
|
||||||
{
|
{
|
||||||
CurInfo->LastBtnDown = 0;
|
CurInfo->LastBtnDown = 0;
|
||||||
CurInfo->LastBtnDownX = Message->Msg.pt.x;
|
CurInfo->LastBtnDownX = Message->Msg.pt.x;
|
||||||
CurInfo->LastBtnDownY = Message->Msg.pt.y;
|
CurInfo->LastBtnDownY = Message->Msg.pt.y;
|
||||||
CurInfo->LastClkWnd = NULL;
|
CurInfo->LastClkWnd = NULL;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
CurInfo->LastBtnDownX = Message->Msg.pt.x;
|
|
||||||
CurInfo->LastBtnDownY = Message->Msg.pt.y;
|
|
||||||
CurInfo->LastClkWnd = (HANDLE)Message->Msg.hwnd;
|
|
||||||
CurInfo->LastBtnDown = Message->Msg.time;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue