mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[CPL] Remove unnecessary DLGPROC casts.
This commit is contained in:
parent
dd4af77703
commit
bcbe0dd8cd
14 changed files with 38 additions and 38 deletions
|
@ -200,11 +200,11 @@ SystemApplet(VOID)
|
|||
psh.nStartPage = 0;
|
||||
psh.ppsp = psp;
|
||||
|
||||
InitPropSheetPage(&psp[0], IDD_PROPPAGEKEYBOARD, (DLGPROC)KeyboardPageProc, pGlobalData);
|
||||
InitPropSheetPage(&psp[1], IDD_PROPPAGESOUND, (DLGPROC)SoundPageProc, pGlobalData);
|
||||
InitPropSheetPage(&psp[2], IDD_PROPPAGEDISPLAY, (DLGPROC)DisplayPageProc, pGlobalData);
|
||||
InitPropSheetPage(&psp[3], IDD_PROPPAGEMOUSE, (DLGPROC)MousePageProc, pGlobalData);
|
||||
InitPropSheetPage(&psp[4], IDD_PROPPAGEGENERAL, (DLGPROC)GeneralPageProc, pGlobalData);
|
||||
InitPropSheetPage(&psp[0], IDD_PROPPAGEKEYBOARD, KeyboardPageProc, pGlobalData);
|
||||
InitPropSheetPage(&psp[1], IDD_PROPPAGESOUND, SoundPageProc, pGlobalData);
|
||||
InitPropSheetPage(&psp[2], IDD_PROPPAGEDISPLAY, DisplayPageProc, pGlobalData);
|
||||
InitPropSheetPage(&psp[3], IDD_PROPPAGEMOUSE, MousePageProc, pGlobalData);
|
||||
InitPropSheetPage(&psp[4], IDD_PROPPAGEGENERAL, GeneralPageProc, pGlobalData);
|
||||
|
||||
ret = PropertySheet(&psh);
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@ DisplayPageProc(HWND hwndDlg,
|
|||
if (DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_CONTRASTOPTIONS),
|
||||
hwndDlg,
|
||||
(DLGPROC)HighContrastDlgProc,
|
||||
HighContrastDlgProc,
|
||||
(LPARAM)pGlobalData))
|
||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||
break;
|
||||
|
|
|
@ -257,7 +257,7 @@ GeneralPageProc(HWND hwndDlg,
|
|||
if (DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_SERIALKEYSOPTIONS),
|
||||
hwndDlg,
|
||||
(DLGPROC)SerialKeysDlgProc,
|
||||
SerialKeysDlgProc,
|
||||
(LPARAM)pGlobalData))
|
||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||
break;
|
||||
|
|
|
@ -467,7 +467,7 @@ FilterKeysDlgProc(HWND hwndDlg,
|
|||
DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_BOUNCEKEYSOPTIONS),
|
||||
hwndDlg,
|
||||
(DLGPROC)BounceKeysDlgProc,
|
||||
BounceKeysDlgProc,
|
||||
(LPARAM)pGlobalData);
|
||||
break;
|
||||
|
||||
|
@ -492,7 +492,7 @@ FilterKeysDlgProc(HWND hwndDlg,
|
|||
DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_REPEATKEYSOPTIONS),
|
||||
hwndDlg,
|
||||
(DLGPROC)RepeatKeysDlgProc,
|
||||
RepeatKeysDlgProc,
|
||||
(LPARAM)pGlobalData);
|
||||
break;
|
||||
|
||||
|
@ -621,7 +621,7 @@ KeyboardPageProc(HWND hwndDlg,
|
|||
if (DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_STICKYKEYSOPTIONS),
|
||||
hwndDlg,
|
||||
(DLGPROC)StickyKeysDlgProc,
|
||||
StickyKeysDlgProc,
|
||||
(LPARAM)pGlobalData))
|
||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||
break;
|
||||
|
@ -635,7 +635,7 @@ KeyboardPageProc(HWND hwndDlg,
|
|||
if (DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_FILTERKEYSOPTIONS),
|
||||
hwndDlg,
|
||||
(DLGPROC)FilterKeysDlgProc,
|
||||
FilterKeysDlgProc,
|
||||
(LPARAM)pGlobalData))
|
||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||
break;
|
||||
|
@ -649,7 +649,7 @@ KeyboardPageProc(HWND hwndDlg,
|
|||
if (DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_TOGGLEKEYSOPTIONS),
|
||||
hwndDlg,
|
||||
(DLGPROC)ToggleKeysDlgProc,
|
||||
ToggleKeysDlgProc,
|
||||
(LPARAM)pGlobalData))
|
||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||
break;
|
||||
|
|
|
@ -177,7 +177,7 @@ MousePageProc(HWND hwndDlg,
|
|||
if (DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_MOUSEKEYSOPTIONS),
|
||||
hwndDlg,
|
||||
(DLGPROC)MouseKeysDlgProc,
|
||||
MouseKeysDlgProc,
|
||||
(LPARAM)pGlobalData))
|
||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||
break;
|
||||
|
|
|
@ -97,16 +97,16 @@ Applet1(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
|
|||
psh.nStartPage = 0;
|
||||
psh.phpage = hpsp;
|
||||
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEPOWERSCHEMES, (DLGPROC)PowerSchemesDlgProc);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEPOWERSCHEMES, PowerSchemesDlgProc);
|
||||
if (GetPwrCapabilities(&spc))
|
||||
{
|
||||
if (spc.SystemBatteriesPresent)
|
||||
{
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEALARMS, (DLGPROC)AlarmsDlgProc);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEALARMS, AlarmsDlgProc);
|
||||
}
|
||||
}
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, (DLGPROC)AdvancedDlgProc);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEHIBERNATE, (DLGPROC)HibernateDlgProc);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, AdvancedDlgProc);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEHIBERNATE, HibernateDlgProc);
|
||||
|
||||
/* Load additional pages provided by shell extensions */
|
||||
hpsxa = SHCreatePropSheetExtArray(HKEY_LOCAL_MACHINE, REGSTR_PATH_CONTROLSFOLDER TEXT("\\Power"), MAX_POWER_PAGES - psh.nPages);
|
||||
|
|
|
@ -134,35 +134,35 @@ AdvancedPageProc(HWND hwndDlg,
|
|||
DialogBox(hApplet,
|
||||
MAKEINTRESOURCE(IDD_VIRTMEM),
|
||||
hwndDlg,
|
||||
(DLGPROC)VirtMemDlgProc);
|
||||
VirtMemDlgProc);
|
||||
break;
|
||||
|
||||
case IDC_USERPROFILE:
|
||||
DialogBox(hApplet,
|
||||
MAKEINTRESOURCE(IDD_USERPROFILE),
|
||||
hwndDlg,
|
||||
(DLGPROC)UserProfileDlgProc);
|
||||
UserProfileDlgProc);
|
||||
break;
|
||||
|
||||
case IDC_STAREC:
|
||||
DialogBox(hApplet,
|
||||
MAKEINTRESOURCE(IDD_STARTUPRECOVERY),
|
||||
hwndDlg,
|
||||
(DLGPROC)StartRecDlgProc);
|
||||
StartRecDlgProc);
|
||||
break;
|
||||
|
||||
case IDC_SYSSETTINGS:
|
||||
DialogBox(hApplet,
|
||||
MAKEINTRESOURCE(IDD_SYSSETTINGS),
|
||||
hwndDlg,
|
||||
(DLGPROC)SysSettingsDlgProc);
|
||||
SysSettingsDlgProc);
|
||||
break;
|
||||
|
||||
case IDC_ENVVAR:
|
||||
DialogBox(hApplet,
|
||||
MAKEINTRESOURCE(IDD_ENVIRONMENT_VARIABLES),
|
||||
hwndDlg,
|
||||
(DLGPROC)EnvironmentDlgProc);
|
||||
EnvironmentDlgProc);
|
||||
break;
|
||||
|
||||
case IDC_ERRORREPORT:
|
||||
|
|
|
@ -163,7 +163,7 @@ CopyHardwareProfile(
|
|||
if (DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_COPYPROFILE),
|
||||
hwndDlg,
|
||||
(DLGPROC)CopyProfileDlgProc,
|
||||
CopyProfileDlgProc,
|
||||
(LPARAM)&ProfileNames) != IDOK)
|
||||
return;
|
||||
|
||||
|
@ -280,7 +280,7 @@ RenameHardwareProfile(
|
|||
if (DialogBoxParam(hApplet,
|
||||
MAKEINTRESOURCE(IDD_RENAMEPROFILE),
|
||||
hwndDlg,
|
||||
(DLGPROC)RenameProfileDlgProc,
|
||||
RenameProfileDlgProc,
|
||||
(LPARAM)&ProfileNames) != IDOK)
|
||||
return;
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ HardwarePageProc(HWND hwndDlg,
|
|||
DialogBox(hApplet,
|
||||
MAKEINTRESOURCE(IDD_HARDWAREPROFILES),
|
||||
hwndDlg,
|
||||
(DLGPROC)HardProfDlgProc);
|
||||
HardProfDlgProc);
|
||||
return TRUE;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -147,10 +147,10 @@ SystemApplet(VOID)
|
|||
psh.phpage = hpsp;
|
||||
psh.pfnCallback = NULL;
|
||||
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEGENERAL, (DLGPROC) GeneralPageProc);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEGENERAL, GeneralPageProc);
|
||||
hNetIdDll = AddNetIdPage(&psh);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEHARDWARE, (DLGPROC) HardwarePageProc);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, (DLGPROC) AdvancedPageProc);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEHARDWARE, HardwarePageProc);
|
||||
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, AdvancedPageProc);
|
||||
|
||||
/* Load additional pages provided by shell extensions */
|
||||
hpsxa = SHCreatePropSheetExtArray(HKEY_LOCAL_MACHINE, REGSTR_PATH_CONTROLSFOLDER TEXT("\\System"), MAX_SYSTEM_PAGES - psh.nPages);
|
||||
|
|
|
@ -96,9 +96,9 @@ Applet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
|
|||
psh.nStartPage = 0;
|
||||
psh.ppsp = psp;
|
||||
|
||||
InitPropSheetPage(&psp[0], IDD_DATETIMEPAGE, (DLGPROC) DateTimePageProc);
|
||||
InitPropSheetPage(&psp[1], IDD_TIMEZONEPAGE, (DLGPROC) TimeZonePageProc);
|
||||
InitPropSheetPage(&psp[2], IDD_INETTIMEPAGE, (DLGPROC) InetTimePageProc);
|
||||
InitPropSheetPage(&psp[0], IDD_DATETIMEPAGE, DateTimePageProc);
|
||||
InitPropSheetPage(&psp[1], IDD_TIMEZONEPAGE, TimeZonePageProc);
|
||||
InitPropSheetPage(&psp[2], IDD_INETTIMEPAGE, InetTimePageProc);
|
||||
|
||||
Ret = (LONG)(PropertySheetW(&psh) != -1);
|
||||
|
||||
|
|
|
@ -638,7 +638,7 @@ GroupProperties(HWND hwndDlg)
|
|||
psh.nStartPage = 0;
|
||||
psh.ppsp = psp;
|
||||
|
||||
InitPropSheetPage(&psp[0], IDD_GROUP_GENERAL, (DLGPROC)GroupGeneralPageProc, szGroupName);
|
||||
InitPropSheetPage(&psp[0], IDD_GROUP_GENERAL, GroupGeneralPageProc, szGroupName);
|
||||
|
||||
return (PropertySheet(&psh) == IDOK);
|
||||
}
|
||||
|
|
|
@ -928,9 +928,9 @@ UserProperties(HWND hwndDlg)
|
|||
psh.nStartPage = 0;
|
||||
psh.ppsp = psp;
|
||||
|
||||
InitPropSheetPage(&psp[0], IDD_USER_GENERAL, (DLGPROC)UserGeneralPageProc, szUserName);
|
||||
InitPropSheetPage(&psp[1], IDD_USER_MEMBERSHIP, (DLGPROC)UserMembershipPageProc, szUserName);
|
||||
InitPropSheetPage(&psp[2], IDD_USER_PROFILE, (DLGPROC)UserProfilePageProc, szUserName);
|
||||
InitPropSheetPage(&psp[0], IDD_USER_GENERAL, UserGeneralPageProc, szUserName);
|
||||
InitPropSheetPage(&psp[1], IDD_USER_MEMBERSHIP, UserMembershipPageProc, szUserName);
|
||||
InitPropSheetPage(&psp[2], IDD_USER_PROFILE, UserProfilePageProc, szUserName);
|
||||
|
||||
return (PropertySheet(&psh) == IDOK);
|
||||
}
|
||||
|
|
|
@ -64,9 +64,9 @@ UsrmgrApplet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
|
|||
psh.nStartPage = 0;
|
||||
psh.ppsp = psp;
|
||||
|
||||
InitPropSheetPage(&psp[0], IDD_USERS, (DLGPROC)UsersPageProc);
|
||||
InitPropSheetPage(&psp[1], IDD_GROUPS, (DLGPROC)GroupsPageProc);
|
||||
InitPropSheetPage(&psp[2], IDD_EXTRA, (DLGPROC)ExtraPageProc);
|
||||
InitPropSheetPage(&psp[0], IDD_USERS, UsersPageProc);
|
||||
InitPropSheetPage(&psp[1], IDD_GROUPS, GroupsPageProc);
|
||||
InitPropSheetPage(&psp[2], IDD_EXTRA, ExtraPageProc);
|
||||
|
||||
return (LONG)(PropertySheet(&psh) != -1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue