mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[SYSSETUP] Add the property sheet page and initialize it
- Add the wheel detection option strings. - Add the property sheet page and initialize the dialog.
This commit is contained in:
parent
183a4bfd9c
commit
e8f8536f9b
32 changed files with 305 additions and 4 deletions
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Общи файлове"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -216,3 +216,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -229,3 +229,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Programmer"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Programme"
|
||||
IDS_COMMONFILES "Gemeinsame Dateien"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Erkennung deaktiviert"
|
||||
IDS_LOOKFORWHEEL "Rad suchen"
|
||||
IDS_ASSUMEPRESENT "Annehmen, dass Rad vorhanden ist"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -230,3 +230,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -211,3 +211,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Archivos de programa"
|
||||
IDS_COMMONFILES "Archivos comunes"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -229,3 +229,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Fichiers communs"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Programmi"
|
||||
IDS_COMMONFILES "File comuni"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -229,3 +229,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Programfiler"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -210,3 +210,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Arquivos de programas"
|
||||
IDS_COMMONFILES "Arquivos comuns"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -219,3 +219,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Fișiere de program"
|
||||
IDS_COMMONFILES "Fișiere comune"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -212,3 +212,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -216,3 +216,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -229,3 +229,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Dokumente Programi"
|
||||
IDS_COMMONFILES "Dokumente Zakonshëm"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -229,3 +229,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program"
|
||||
IDS_COMMONFILES "Delade filer"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -229,3 +229,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\โปรแกรมไฟล์"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -212,3 +212,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\İzlence Kütükleri"
|
||||
IDS_COMMONFILES "Ortak Kütükler"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -218,3 +218,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -215,3 +215,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -211,3 +211,10 @@ BEGIN
|
|||
IDS_PROGRAMFILES "%SystemDrive%\\Program Files"
|
||||
IDS_COMMONFILES "Common Files"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_DETECTIONDISABLED "Detection disabled"
|
||||
IDS_LOOKFORWHEEL "Look for wheel"
|
||||
IDS_ASSUMEPRESENT "Assume wheel is present"
|
||||
END
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
DWORD MouseSampleRates[] = {20, 40, 60, 80, 100, 200};
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
|
@ -77,8 +79,65 @@ LegacyDriverPropPageProvider(
|
|||
}
|
||||
|
||||
|
||||
static
|
||||
VOID
|
||||
MouseOnDialogInit(
|
||||
HWND hwndDlg,
|
||||
LPARAM lParam)
|
||||
{
|
||||
WCHAR szBuffer[64];
|
||||
UINT i;
|
||||
|
||||
/* Add the sample rates */
|
||||
for (i = 0; i < ARRAYSIZE(MouseSampleRates); i++)
|
||||
{
|
||||
wsprintf(szBuffer, L"%lu", MouseSampleRates[i]);
|
||||
SendDlgItemMessageW(hwndDlg,
|
||||
IDC_PS2MOUSESAMPLERATE,
|
||||
CB_ADDSTRING,
|
||||
0,
|
||||
(LPARAM)szBuffer);
|
||||
}
|
||||
|
||||
/* Add the detection options */
|
||||
for (i = IDS_DETECTIONDISABLED; i <= IDS_ASSUMEPRESENT; i++)
|
||||
{
|
||||
LoadStringW(hDllInstance, i, szBuffer, ARRAYSIZE(szBuffer));
|
||||
SendDlgItemMessageW(hwndDlg,
|
||||
IDC_PS2MOUSEWHEEL,
|
||||
CB_ADDSTRING,
|
||||
0,
|
||||
(LPARAM)szBuffer);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
static
|
||||
INT_PTR
|
||||
CALLBACK
|
||||
MouseDlgProc(
|
||||
HWND hwndDlg,
|
||||
UINT uMsg,
|
||||
WPARAM wParam,
|
||||
LPARAM lParam)
|
||||
{
|
||||
DPRINT("MouseDlgProc\n");
|
||||
|
||||
switch (uMsg)
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
MouseOnDialogInit(hwndDlg, lParam);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
|
@ -87,10 +146,38 @@ PS2MousePropPageProvider(
|
|||
_In_ LPFNADDPROPSHEETPAGE lpfnAddPropSheetPageProc,
|
||||
_In_ LPARAM lParam)
|
||||
{
|
||||
DPRINT1("PS2MousePropPageProvider(%p %p %lx)\n",
|
||||
PROPSHEETPAGEW PropSheetPage;
|
||||
HPROPSHEETPAGE hPropSheetPage;
|
||||
|
||||
DPRINT("PS2MousePropPageProvider(%p %p %lx)\n",
|
||||
lpPropSheetPageRequest, lpfnAddPropSheetPageProc, lParam);
|
||||
UNIMPLEMENTED;
|
||||
return FALSE;
|
||||
|
||||
if (lpPropSheetPageRequest->PageRequested != SPPSR_ENUM_ADV_DEVICE_PROPERTIES)
|
||||
return FALSE;
|
||||
|
||||
PropSheetPage.dwSize = sizeof(PROPSHEETPAGEW);
|
||||
PropSheetPage.dwFlags = 0;
|
||||
PropSheetPage.hInstance = hDllInstance;
|
||||
PropSheetPage.pszTemplate = MAKEINTRESOURCE(IDD_PS2MOUSEPROPERTIES);
|
||||
PropSheetPage.pfnDlgProc = MouseDlgProc;
|
||||
PropSheetPage.lParam = 0;
|
||||
PropSheetPage.pfnCallback = NULL;
|
||||
|
||||
hPropSheetPage = CreatePropertySheetPageW(&PropSheetPage);
|
||||
if (hPropSheetPage == NULL)
|
||||
{
|
||||
DPRINT1("CreatePropertySheetPageW() failed!\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!(*lpfnAddPropSheetPageProc)(hPropSheetPage, lParam))
|
||||
{
|
||||
DPRINT1("lpfnAddPropSheetPageProc() failed!\n");
|
||||
DestroyPropertySheetPage(hPropSheetPage);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -136,4 +136,8 @@
|
|||
#define IDS_PROGRAMFILES 3600
|
||||
#define IDS_COMMONFILES 3601
|
||||
|
||||
#define IDS_DETECTIONDISABLED 3700
|
||||
#define IDS_LOOKFORWHEEL 3701
|
||||
#define IDS_ASSUMEPRESENT 3702
|
||||
|
||||
#define IDR_GPL 4000
|
||||
|
|
Loading…
Reference in a new issue