mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 22:01:43 +00:00
- some preparation for ClickLock implementation
svn path=/trunk/; revision=43325
This commit is contained in:
parent
f637e66227
commit
4da1dafa69
3 changed files with 6 additions and 0 deletions
|
@ -41,6 +41,8 @@ typedef struct _CURSORACCELERATION_INFO
|
|||
typedef struct _SYSTEM_CURSORINFO
|
||||
{
|
||||
BOOL Enabled;
|
||||
BOOL ClickLockActive;
|
||||
DWORD ClickLockTime;
|
||||
// BOOL SwapButtons;
|
||||
UINT ButtonsDown;
|
||||
CURSORCLIP_INFO CursorClipInfo;
|
||||
|
|
|
@ -263,6 +263,7 @@ SpiUpdatePerUserSystemParameters()
|
|||
gspv.iWheelScrollLines = SpiLoadInt(KEY_DESKTOP, VAL_SCRLLLINES, 3);
|
||||
gspv.dwMouseClickLockTime = SpiLoadDWord(KEY_DESKTOP, VAL_CLICKLOCKTIME, 1200);
|
||||
gspv.dwUserPrefMask = SpiLoadUserPrefMask(UPM_DEFAULT);
|
||||
gspv.bMouseClickLock = (gspv.dwUserPrefMask & UPM_CLICKLOCK) != 0;
|
||||
#if (_WIN32_WINNT >= 0x0600)
|
||||
gspv.iWheelScrollChars = SpiLoadInt(KEY_DESKTOP, VAL_SCRLLCHARS, 3);
|
||||
#endif
|
||||
|
@ -1322,6 +1323,7 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
|
|||
return SpiGetUserPref(UPM_CLICKLOCK, pvParam, fl);
|
||||
|
||||
case SPI_SETMOUSECLICKLOCK:
|
||||
gspv.bMouseClickLock = *(BOOL*) pvParam;
|
||||
return SpiSetUserPref(UPM_CLICKLOCK, pvParam, fl);
|
||||
|
||||
case SPI_GETMOUSEVANISH:
|
||||
|
|
|
@ -537,6 +537,8 @@ NtUserCreateWindowStation(
|
|||
CurInfo->LastBtnDown = 0;
|
||||
CurInfo->CurrentCursorObject = NULL;
|
||||
CurInfo->ShowingCursor = 0;
|
||||
CurInfo->ClickLockActive = FALSE;
|
||||
CurInfo->ClickLockTime = 0;
|
||||
|
||||
/*
|
||||
// not used anymore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue