- some preparation for ClickLock implementation

svn path=/trunk/; revision=43325
This commit is contained in:
Matthias Kupfer 2009-10-07 14:25:52 +00:00
parent f637e66227
commit 4da1dafa69
3 changed files with 6 additions and 0 deletions

View file

@ -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;

View file

@ -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:

View file

@ -537,6 +537,8 @@ NtUserCreateWindowStation(
CurInfo->LastBtnDown = 0;
CurInfo->CurrentCursorObject = NULL;
CurInfo->ShowingCursor = 0;
CurInfo->ClickLockActive = FALSE;
CurInfo->ClickLockTime = 0;
/*
// not used anymore