Author: janderwald
Date: Wed May 3 19:06:09 2006
New Revision: 21792
URL:
http://svn.reactos.ru/svn/reactos?rev=21792&view=rev
Log:
set double click speed with latest slider pos
Modified:
trunk/reactos/dll/cpl/main/mouse.c
Modified: trunk/reactos/dll/cpl/main/mouse.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/cpl/main/mouse.c?rev=21…
==============================================================================
--- trunk/reactos/dll/cpl/main/mouse.c (original)
+++ trunk/reactos/dll/cpl/main/mouse.c Wed May 3 19:06:09 2006
@@ -228,7 +228,7 @@
EnableWindow(hDlgCtrl, FALSE);
}
hDlgCtrl = GetDlgItem(hwndDlg, IDC_SLIDER_DOUBLE_CLICK_SPEED);
- SendMessage(hDlgCtrl, TBM_SETRANGE, (WPARAM)TRUE, (LPARAM)MAKELONG(0,
11));
+ SendMessage(hDlgCtrl, TBM_SETRANGE, (WPARAM)TRUE, (LPARAM)MAKELONG(0,
14));
pos = ((float)g_DoubleClickSpeed / MAX_DOUBLE_CLICK_SPEED);
pos /= (1.0f/11.0f);
SendMessage(hDlgCtrl, TBM_SETPOS, (WPARAM)TRUE,
(LPARAM)(INT)rintf(pos));
@@ -290,7 +290,13 @@
lppsn = (LPPSHNOTIFY) lParam;
if (lppsn->hdr.code == PSN_APPLY)
{
+ /* apply swap mouse button */
SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP, g_SwapMouseButtons, NULL,
SPIF_SENDCHANGE);
+
+ /* apply double click speed */
+ hDlgCtrl = GetDlgItem(hwndDlg, IDC_SLIDER_DOUBLE_CLICK_SPEED);
+ lResult = SendMessage(hDlgCtrl, TBM_GETPOS, 0, 0);
+ g_DoubleClickSpeed = (INT)lResult * 50 + 200;
SystemParametersInfo(SPI_SETDOUBLECLICKTIME, g_DoubleClickSpeed, NULL,
SPIF_SENDCHANGE);
#if (WINVER >= 0x0500)