mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 21:48:19 +00:00
Fix indentation, no code changes.
svn path=/trunk/; revision=26615
This commit is contained in:
parent
4e78c81b3c
commit
219c4c8eb7
7 changed files with 229 additions and 248 deletions
|
@ -20,28 +20,23 @@
|
||||||
#define NUM_APPLETS (1)
|
#define NUM_APPLETS (1)
|
||||||
|
|
||||||
LONG CALLBACK SystemApplet(VOID);
|
LONG CALLBACK SystemApplet(VOID);
|
||||||
INT_PTR CALLBACK DisplayPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
||||||
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
||||||
INT_PTR CALLBACK KeyboardPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
||||||
INT_PTR CALLBACK MousePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
||||||
INT_PTR CALLBACK SoundPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
||||||
HINSTANCE hApplet = 0;
|
HINSTANCE hApplet = 0;
|
||||||
|
|
||||||
/* Applets */
|
/* Applets */
|
||||||
APPLET Applets[NUM_APPLETS] =
|
APPLET Applets[NUM_APPLETS] =
|
||||||
{
|
{
|
||||||
{IDI_CPLACCESS, IDS_CPLSYSTEMNAME, IDS_CPLSYSTEMDESCRIPTION, SystemApplet}
|
{IDI_CPLACCESS, IDS_CPLSYSTEMNAME, IDS_CPLSYSTEMDESCRIPTION, SystemApplet}
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static VOID
|
||||||
InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc)
|
InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc)
|
||||||
{
|
{
|
||||||
ZeroMemory(psp, sizeof(PROPSHEETPAGE));
|
ZeroMemory(psp, sizeof(PROPSHEETPAGE));
|
||||||
psp->dwSize = sizeof(PROPSHEETPAGE);
|
psp->dwSize = sizeof(PROPSHEETPAGE);
|
||||||
psp->dwFlags = PSP_DEFAULT;
|
psp->dwFlags = PSP_DEFAULT;
|
||||||
psp->hInstance = hApplet;
|
psp->hInstance = hApplet;
|
||||||
psp->pszTemplate = MAKEINTRESOURCE(idDlg);
|
psp->pszTemplate = MAKEINTRESOURCE(idDlg);
|
||||||
psp->pfnDlgProc = DlgProc;
|
psp->pfnDlgProc = DlgProc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,86 +45,85 @@ InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc)
|
||||||
LONG CALLBACK
|
LONG CALLBACK
|
||||||
SystemApplet(VOID)
|
SystemApplet(VOID)
|
||||||
{
|
{
|
||||||
PROPSHEETPAGE psp[5];
|
PROPSHEETPAGE psp[5];
|
||||||
PROPSHEETHEADER psh;
|
PROPSHEETHEADER psh;
|
||||||
TCHAR Caption[1024];
|
TCHAR Caption[1024];
|
||||||
|
|
||||||
LoadString(hApplet, IDS_CPLSYSTEMNAME, Caption, sizeof(Caption) / sizeof(TCHAR));
|
LoadString(hApplet, IDS_CPLSYSTEMNAME, Caption, sizeof(Caption) / sizeof(TCHAR));
|
||||||
|
|
||||||
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
|
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
|
||||||
psh.dwSize = sizeof(PROPSHEETHEADER);
|
psh.dwSize = sizeof(PROPSHEETHEADER);
|
||||||
psh.dwFlags = PSH_PROPSHEETPAGE;
|
psh.dwFlags = PSH_PROPSHEETPAGE;
|
||||||
psh.hwndParent = NULL;
|
psh.hwndParent = NULL;
|
||||||
psh.hInstance = hApplet;
|
psh.hInstance = hApplet;
|
||||||
psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDI_CPLACCESS));
|
psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDI_CPLACCESS));
|
||||||
psh.pszCaption = Caption;
|
psh.pszCaption = Caption;
|
||||||
psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
|
psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
|
||||||
psh.nStartPage = 0;
|
psh.nStartPage = 0;
|
||||||
psh.ppsp = psp;
|
psh.ppsp = psp;
|
||||||
|
|
||||||
InitPropSheetPage(&psp[0], IDD_PROPPAGEKEYBOARD, (DLGPROC) KeyboardPageProc);
|
InitPropSheetPage(&psp[0], IDD_PROPPAGEKEYBOARD, (DLGPROC)KeyboardPageProc);
|
||||||
InitPropSheetPage(&psp[1], IDD_PROPPAGESOUND, (DLGPROC) SoundPageProc);
|
InitPropSheetPage(&psp[1], IDD_PROPPAGESOUND, (DLGPROC)SoundPageProc);
|
||||||
InitPropSheetPage(&psp[2], IDD_PROPPAGEDISPLAY, (DLGPROC) DisplayPageProc);
|
InitPropSheetPage(&psp[2], IDD_PROPPAGEDISPLAY, (DLGPROC)DisplayPageProc);
|
||||||
InitPropSheetPage(&psp[3], IDD_PROPPAGEMOUSE, (DLGPROC) MousePageProc);
|
InitPropSheetPage(&psp[3], IDD_PROPPAGEMOUSE, (DLGPROC)MousePageProc);
|
||||||
InitPropSheetPage(&psp[4], IDD_PROPPAGEGENERAL, (DLGPROC) GeneralPageProc);
|
InitPropSheetPage(&psp[4], IDD_PROPPAGEGENERAL, (DLGPROC)GeneralPageProc);
|
||||||
|
|
||||||
return (LONG)(PropertySheet(&psh) != -1);
|
return (LONG)(PropertySheet(&psh) != -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Control Panel Callback */
|
/* Control Panel Callback */
|
||||||
LONG CALLBACK
|
LONG CALLBACK
|
||||||
CPlApplet(
|
CPlApplet(HWND hwndCPl,
|
||||||
HWND hwndCPl,
|
UINT uMsg,
|
||||||
UINT uMsg,
|
LPARAM lParam1,
|
||||||
LPARAM lParam1,
|
LPARAM lParam2)
|
||||||
LPARAM lParam2)
|
|
||||||
{
|
{
|
||||||
int i = (int)lParam1;
|
INT i = (INT)lParam1;
|
||||||
UNREFERENCED_PARAMETER(hwndCPl);
|
|
||||||
|
|
||||||
switch(uMsg)
|
UNREFERENCED_PARAMETER(hwndCPl);
|
||||||
{
|
|
||||||
case CPL_INIT:
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
return TRUE;
|
case CPL_INIT:
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
case CPL_GETCOUNT:
|
||||||
|
return NUM_APPLETS;
|
||||||
|
|
||||||
|
case CPL_INQUIRE:
|
||||||
|
{
|
||||||
|
CPLINFO *CPlInfo = (CPLINFO*)lParam2;
|
||||||
|
CPlInfo->lData = 0;
|
||||||
|
CPlInfo->idIcon = Applets[i].idIcon;
|
||||||
|
CPlInfo->idName = Applets[i].idName;
|
||||||
|
CPlInfo->idInfo = Applets[i].idDescription;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case CPL_DBLCLK:
|
||||||
|
Applets[i].AppletProc();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case CPL_GETCOUNT:
|
|
||||||
{
|
return FALSE;
|
||||||
return NUM_APPLETS;
|
|
||||||
}
|
|
||||||
case CPL_INQUIRE:
|
|
||||||
{
|
|
||||||
CPLINFO *CPlInfo = (CPLINFO*)lParam2;
|
|
||||||
CPlInfo->lData = 0;
|
|
||||||
CPlInfo->idIcon = Applets[i].idIcon;
|
|
||||||
CPlInfo->idName = Applets[i].idName;
|
|
||||||
CPlInfo->idInfo = Applets[i].idDescription;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case CPL_DBLCLK:
|
|
||||||
{
|
|
||||||
Applets[i].AppletProc();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
DllMain(
|
DllMain(HINSTANCE hinstDLL,
|
||||||
HINSTANCE hinstDLL,
|
DWORD dwReason,
|
||||||
DWORD dwReason,
|
LPVOID lpvReserved)
|
||||||
LPVOID lpvReserved)
|
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(lpvReserved);
|
UNREFERENCED_PARAMETER(lpvReserved);
|
||||||
switch(dwReason)
|
|
||||||
{
|
switch (dwReason)
|
||||||
case DLL_PROCESS_ATTACH:
|
{
|
||||||
case DLL_THREAD_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
hApplet = hinstDLL;
|
case DLL_THREAD_ATTACH:
|
||||||
break;
|
hApplet = hinstDLL;
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,18 +3,24 @@
|
||||||
|
|
||||||
typedef LONG (CALLBACK *APPLET_INITPROC)(VOID);
|
typedef LONG (CALLBACK *APPLET_INITPROC)(VOID);
|
||||||
|
|
||||||
typedef struct
|
typedef struct _APPLET
|
||||||
{
|
{
|
||||||
int idIcon;
|
INT idIcon;
|
||||||
int idName;
|
INT idName;
|
||||||
int idDescription;
|
INT idDescription;
|
||||||
APPLET_INITPROC AppletProc;
|
APPLET_INITPROC AppletProc;
|
||||||
} APPLET, *PAPPLET;
|
} APPLET, *PAPPLET;
|
||||||
|
|
||||||
extern HINSTANCE hApplet;
|
extern HINSTANCE hApplet;
|
||||||
|
|
||||||
void ShowLastWin32Error(HWND hWndOwner);
|
void ShowLastWin32Error(HWND hWndOwner);
|
||||||
|
|
||||||
|
INT_PTR CALLBACK DisplayPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
|
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
|
INT_PTR CALLBACK KeyboardPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
|
INT_PTR CALLBACK MousePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
|
INT_PTR CALLBACK SoundPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
|
|
||||||
#endif /* __CPL_SYSDM_H */
|
#endif /* __CPL_SYSDM_H */
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -15,35 +15,33 @@
|
||||||
|
|
||||||
/* Property page dialog callback */
|
/* Property page dialog callback */
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
DisplayPageProc(
|
DisplayPageProc(HWND hwndDlg,
|
||||||
HWND hwndDlg,
|
UINT uMsg,
|
||||||
UINT uMsg,
|
WPARAM wParam,
|
||||||
WPARAM wParam,
|
LPARAM lParam)
|
||||||
LPARAM lParam
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(lParam);
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
UNREFERENCED_PARAMETER(hwndDlg);
|
UNREFERENCED_PARAMETER(hwndDlg);
|
||||||
switch(uMsg)
|
|
||||||
{
|
switch (uMsg)
|
||||||
case WM_INITDIALOG:
|
|
||||||
break;
|
|
||||||
case WM_COMMAND:
|
|
||||||
{
|
{
|
||||||
switch(LOWORD(wParam))
|
case WM_INITDIALOG:
|
||||||
{
|
break;
|
||||||
case IDC_CONTRAST_BOX:
|
|
||||||
{
|
case WM_COMMAND:
|
||||||
break;
|
switch (LOWORD(wParam))
|
||||||
}
|
{
|
||||||
case IDC_CONTRAST_BUTTON:
|
case IDC_CONTRAST_BOX:
|
||||||
{
|
break;
|
||||||
break;
|
|
||||||
}
|
case IDC_CONTRAST_BUTTON:
|
||||||
default:
|
break;
|
||||||
break;
|
|
||||||
}
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,55 +15,48 @@
|
||||||
|
|
||||||
/* Property page dialog callback */
|
/* Property page dialog callback */
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
GeneralPageProc(
|
GeneralPageProc(HWND hwndDlg,
|
||||||
HWND hwndDlg,
|
UINT uMsg,
|
||||||
UINT uMsg,
|
WPARAM wParam,
|
||||||
WPARAM wParam,
|
LPARAM lParam)
|
||||||
LPARAM lParam
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(lParam);
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
UNREFERENCED_PARAMETER(hwndDlg);
|
UNREFERENCED_PARAMETER(hwndDlg);
|
||||||
switch(uMsg)
|
|
||||||
{
|
switch (uMsg)
|
||||||
case WM_INITDIALOG:
|
|
||||||
break;
|
|
||||||
case WM_COMMAND:
|
|
||||||
{
|
{
|
||||||
switch(LOWORD(wParam))
|
case WM_INITDIALOG:
|
||||||
{
|
break;
|
||||||
case IDC_RESET_BOX:
|
|
||||||
{
|
case WM_COMMAND:
|
||||||
break;
|
switch (LOWORD(wParam))
|
||||||
}
|
{
|
||||||
case IDC_NOTIFICATION_MESSAGE:
|
case IDC_RESET_BOX:
|
||||||
{
|
break;
|
||||||
break;
|
|
||||||
}
|
case IDC_NOTIFICATION_MESSAGE:
|
||||||
case IDC_NOTIFICATION_SOUND:
|
break;
|
||||||
{
|
|
||||||
break;
|
case IDC_NOTIFICATION_SOUND:
|
||||||
}
|
break;
|
||||||
case IDC_SERIAL_BOX:
|
|
||||||
{
|
case IDC_SERIAL_BOX:
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case IDC_SERIAL_BUTTON:
|
case IDC_SERIAL_BUTTON:
|
||||||
{
|
break;
|
||||||
break;
|
|
||||||
}
|
case IDC_ADMIN_LOGON_BOX:
|
||||||
case IDC_ADMIN_LOGON_BOX:
|
break;
|
||||||
{
|
|
||||||
break;
|
case IDC_ADMIN_USERS_BOX:
|
||||||
}
|
break;
|
||||||
case IDC_ADMIN_USERS_BOX:
|
|
||||||
{
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,37 +25,34 @@ typedef struct _GLOBAL_DATA
|
||||||
|
|
||||||
/* Property page dialog callback */
|
/* Property page dialog callback */
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
StickyKeysDlgProc(
|
StickyKeysDlgProc(HWND hwndDlg,
|
||||||
HWND hwndDlg,
|
UINT uMsg,
|
||||||
UINT uMsg,
|
WPARAM wParam,
|
||||||
WPARAM wParam,
|
LPARAM lParam)
|
||||||
LPARAM lParam
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(lParam);
|
switch (uMsg)
|
||||||
UNREFERENCED_PARAMETER(hwndDlg);
|
|
||||||
switch(uMsg)
|
|
||||||
{
|
|
||||||
case WM_INITDIALOG:
|
|
||||||
break;
|
|
||||||
case WM_COMMAND:
|
|
||||||
{
|
{
|
||||||
switch(LOWORD(wParam))
|
case WM_INITDIALOG:
|
||||||
{
|
break;
|
||||||
case IDOK:
|
|
||||||
EndDialog(hwndDlg, TRUE);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case IDCANCEL:
|
case WM_COMMAND:
|
||||||
EndDialog(hwndDlg, FALSE);
|
switch (LOWORD(wParam))
|
||||||
break;
|
{
|
||||||
|
case IDOK:
|
||||||
|
EndDialog(hwndDlg, TRUE);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
case IDCANCEL:
|
||||||
break;
|
EndDialog(hwndDlg, FALSE);
|
||||||
}
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,35 +15,32 @@
|
||||||
|
|
||||||
/* Property page dialog callback */
|
/* Property page dialog callback */
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
MousePageProc(
|
MousePageProc(HWND hwndDlg,
|
||||||
HWND hwndDlg,
|
UINT uMsg,
|
||||||
UINT uMsg,
|
WPARAM wParam,
|
||||||
WPARAM wParam,
|
LPARAM lParam)
|
||||||
LPARAM lParam
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(lParam);
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
UNREFERENCED_PARAMETER(hwndDlg);
|
UNREFERENCED_PARAMETER(hwndDlg);
|
||||||
switch(uMsg)
|
|
||||||
{
|
switch (uMsg)
|
||||||
case WM_INITDIALOG:
|
|
||||||
break;
|
|
||||||
case WM_COMMAND:
|
|
||||||
{
|
{
|
||||||
switch(LOWORD(wParam))
|
case WM_INITDIALOG:
|
||||||
{
|
break;
|
||||||
case IDC_MOUSE_BOX:
|
case WM_COMMAND:
|
||||||
{
|
switch (LOWORD(wParam))
|
||||||
break;
|
{
|
||||||
}
|
case IDC_MOUSE_BOX:
|
||||||
case IDC_MOUSE_BUTTON:
|
break;
|
||||||
{
|
|
||||||
break;
|
case IDC_MOUSE_BUTTON:
|
||||||
}
|
break;
|
||||||
default:
|
|
||||||
break;
|
default:
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,39 +15,35 @@
|
||||||
|
|
||||||
/* Property page dialog callback */
|
/* Property page dialog callback */
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
SoundPageProc(
|
SoundPageProc(HWND hwndDlg,
|
||||||
HWND hwndDlg,
|
UINT uMsg,
|
||||||
UINT uMsg,
|
WPARAM wParam,
|
||||||
WPARAM wParam,
|
LPARAM lParam)
|
||||||
LPARAM lParam
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(lParam);
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
UNREFERENCED_PARAMETER(hwndDlg);
|
UNREFERENCED_PARAMETER(hwndDlg);
|
||||||
switch(uMsg)
|
|
||||||
{
|
switch (uMsg)
|
||||||
case WM_INITDIALOG:
|
|
||||||
break;
|
|
||||||
case WM_COMMAND:
|
|
||||||
{
|
{
|
||||||
switch(LOWORD(wParam))
|
case WM_INITDIALOG:
|
||||||
{
|
break;
|
||||||
case IDC_SENTRY_BOX:
|
case WM_COMMAND:
|
||||||
{
|
switch (LOWORD(wParam))
|
||||||
break;
|
{
|
||||||
}
|
case IDC_SENTRY_BOX:
|
||||||
case IDC_SENTRY_BUTTON:
|
break;
|
||||||
{
|
|
||||||
break;
|
case IDC_SENTRY_BUTTON:
|
||||||
}
|
break;
|
||||||
case IDC_SSHOW_BOX:
|
|
||||||
{
|
case IDC_SSHOW_BOX:
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue