mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +00:00
- revert SPI_SETCLICKLOCK
- small optimization in mgsqueue svn path=/trunk/; revision=43327
This commit is contained in:
parent
cfff690aae
commit
f894aea679
|
@ -384,7 +384,7 @@ ButtonProc(IN HWND hwndDlg,
|
|||
//SetDoubleClickTime(pButtonData->g_DoubleClickSpeed);
|
||||
|
||||
#if (WINVER >= 0x0500)
|
||||
SystemParametersInfo(SPI_SETMOUSECLICKLOCK, 0, &pButtonData->g_ClickLockEnabled, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
|
||||
SystemParametersInfo(SPI_SETMOUSECLICKLOCK, 0, (PVOID)pButtonData->g_ClickLockEnabled, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
|
||||
if (pButtonData->g_ClickLockEnabled)
|
||||
SystemParametersInfo(SPI_SETMOUSECLICKLOCKTIME, pButtonData->g_ClickLockTime, NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
|
||||
#endif
|
||||
|
|
|
@ -274,21 +274,18 @@ MsqIsDblClk(LPMSG Msg, BOOL Remove)
|
|||
|
||||
if(Remove)
|
||||
{
|
||||
CurInfo->LastBtnDownX = Msg->pt.x;
|
||||
CurInfo->LastBtnDownY = Msg->pt.y;
|
||||
CurInfo->ButtonsDown = Msg->message;
|
||||
if (Res)
|
||||
{
|
||||
CurInfo->LastBtnDown = 0;
|
||||
CurInfo->LastBtnDownX = Msg->pt.x;
|
||||
CurInfo->LastBtnDownY = Msg->pt.y;
|
||||
CurInfo->LastClkWnd = NULL;
|
||||
CurInfo->ButtonsDown = Msg->message;
|
||||
}
|
||||
else
|
||||
{
|
||||
CurInfo->LastBtnDownX = Msg->pt.x;
|
||||
CurInfo->LastBtnDownY = Msg->pt.y;
|
||||
CurInfo->LastClkWnd = (HANDLE)Msg->hwnd;
|
||||
CurInfo->LastBtnDown = Msg->time;
|
||||
CurInfo->ButtonsDown = Msg->message;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -529,7 +529,7 @@ UINT_PTR
|
|||
SpiSetUserPref(DWORD dwMask, PVOID pvValue, FLONG fl)
|
||||
{
|
||||
DWORD dwRegMask;
|
||||
BOOL bValue = *(BOOL *)pvValue;
|
||||
BOOL bValue = (BOOL)pvValue;
|
||||
|
||||
REQ_INTERACTIVE_WINSTA(ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION);
|
||||
|
||||
|
@ -1323,7 +1323,7 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
|
|||
return SpiGetUserPref(UPM_CLICKLOCK, pvParam, fl);
|
||||
|
||||
case SPI_SETMOUSECLICKLOCK:
|
||||
gspv.bMouseClickLock = *(BOOL*) pvParam;
|
||||
gspv.bMouseClickLock = (BOOL)pvParam;
|
||||
return SpiSetUserPref(UPM_CLICKLOCK, pvParam, fl);
|
||||
|
||||
case SPI_GETMOUSEVANISH:
|
||||
|
|
Loading…
Reference in a new issue