mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[0.4.7][REACTOS] Reduce count of (DLGPROC) casts, [CMIDRIVER] Remove useless aps file
ports back the following commits: 0.4.15-dev-3822-g78a7d7dc32
[CMIDRIVER] Remove useless Visual Studio resource editor aps-file 0.4.12-dev-399-g32faa24733
[BUTTERFLIES] Fix GCC build, addendum to 0.4.12-dev-397-g2890a22179
a tiny fraction of 0.4.12-dev-397-g2890a22179
just the [BUTTERFLIES] Avoid DLGPROC cast 0.4.8-dev-58-gbcbe0dd8cd
[CPL] Remove unnecessary DLGPROC casts. (#99) 0.4.8-dev-30-g830fc82afe
[SERIALUI] Set the stdcall calling convention for CommDlgProc() and make it return INT_PTR Ftr, there are still a few DLGPROC casts left after this commit in ros source tree, but I don't want to port back the commits yet, which addressed them. Too fresh still, no need to rush that.
This commit is contained in:
parent
509c7c3a90
commit
0c09cd7e98
20 changed files with 60 additions and 60 deletions
|
@ -218,14 +218,14 @@ DriveDlgProc(
|
||||||
DialogBoxParam(pSetupData->hInstance,
|
DialogBoxParam(pSetupData->hInstance,
|
||||||
MAKEINTRESOURCE(IDD_BOOTOPTIONS),
|
MAKEINTRESOURCE(IDD_BOOTOPTIONS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)MoreOptDlgProc,
|
MoreOptDlgProc,
|
||||||
(LPARAM)pSetupData);
|
(LPARAM)pSetupData);
|
||||||
break;
|
break;
|
||||||
case IDC_PARTCREATE:
|
case IDC_PARTCREATE:
|
||||||
DialogBox(pSetupData->hInstance,
|
DialogBox(pSetupData->hInstance,
|
||||||
MAKEINTRESOURCE(IDD_PARTITION),
|
MAKEINTRESOURCE(IDD_PARTITION),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC) PartitionDlgProc);
|
PartitionDlgProc);
|
||||||
break;
|
break;
|
||||||
case IDC_PARTDELETE:
|
case IDC_PARTDELETE:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -34,9 +34,9 @@ DWORD dwThreadId = 0; // Thread id of RS23
|
||||||
ATOM MyRegisterClass(HINSTANCE hInstance);
|
ATOM MyRegisterClass(HINSTANCE hInstance);
|
||||||
BOOL InitInstance(HINSTANCE, int);
|
BOOL InitInstance(HINSTANCE, int);
|
||||||
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM);
|
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
|
||||||
LRESULT CALLBACK ConnectionDialogProc(HWND, UINT, WPARAM, LPARAM);
|
INT_PTR CALLBACK ConnectionDialogProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
LRESULT CALLBACK CaptureDialogProc(HWND, UINT, WPARAM, LPARAM);
|
INT_PTR CALLBACK CaptureDialogProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
VOID EnableFileMenuItemByID(UINT Id, BOOL Enable);
|
VOID EnableFileMenuItemByID(UINT Id, BOOL Enable);
|
||||||
VOID CheckLocalEchoMenuItem(BOOL Checked);
|
VOID CheckLocalEchoMenuItem(BOOL Checked);
|
||||||
VOID __cdecl Rs232Thread(VOID* Parameter);
|
VOID __cdecl Rs232Thread(VOID* Parameter);
|
||||||
|
@ -212,7 +212,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
switch (wmId)
|
switch (wmId)
|
||||||
{
|
{
|
||||||
case IDM_ABOUT:
|
case IDM_ABOUT:
|
||||||
DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);
|
DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, About);
|
||||||
break;
|
break;
|
||||||
case IDM_EXIT:
|
case IDM_EXIT:
|
||||||
DestroyWindow(hWnd);
|
DestroyWindow(hWnd);
|
||||||
|
@ -227,7 +227,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (DialogBox(hInst, (LPCTSTR)IDD_CONNECTION, hWnd, (DLGPROC)ConnectionDialogProc) == IDOK)
|
if (DialogBox(hInst, (LPCTSTR)IDD_CONNECTION, hWnd, ConnectionDialogProc) == IDOK)
|
||||||
{
|
{
|
||||||
bConnected = TRUE;
|
bConnected = TRUE;
|
||||||
EnableFileMenuItemByID(IDM_FILE_DISCONNECT, TRUE);
|
EnableFileMenuItemByID(IDM_FILE_DISCONNECT, TRUE);
|
||||||
|
@ -249,7 +249,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IDM_FILE_STARTCAPTURE:
|
case IDM_FILE_STARTCAPTURE:
|
||||||
if (DialogBox(hInst, (LPCTSTR)IDD_CAPTURE, hWnd, (DLGPROC)CaptureDialogProc) == IDOK)
|
if (DialogBox(hInst, (LPCTSTR)IDD_CAPTURE, hWnd, CaptureDialogProc) == IDOK)
|
||||||
{
|
{
|
||||||
bCapturing = TRUE;
|
bCapturing = TRUE;
|
||||||
EnableFileMenuItemByID(IDM_FILE_STOPCAPTURE, TRUE);
|
EnableFileMenuItemByID(IDM_FILE_STOPCAPTURE, TRUE);
|
||||||
|
@ -305,7 +305,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
HWND hLicenseEditWnd;
|
HWND hLicenseEditWnd;
|
||||||
TCHAR strLicense[0x1000];
|
TCHAR strLicense[0x1000];
|
||||||
|
@ -335,7 +335,7 @@ LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT CALLBACK ConnectionDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK ConnectionDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(lParam);
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
|
|
||||||
|
@ -365,7 +365,7 @@ LRESULT CALLBACK ConnectionDialogProc(HWND hDlg, UINT message, WPARAM wParam, LP
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT CALLBACK CaptureDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
INT_PTR CALLBACK CaptureDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
OPENFILENAME ofn;
|
OPENFILENAME ofn;
|
||||||
|
|
||||||
|
|
|
@ -200,11 +200,11 @@ SystemApplet(VOID)
|
||||||
psh.nStartPage = 0;
|
psh.nStartPage = 0;
|
||||||
psh.ppsp = psp;
|
psh.ppsp = psp;
|
||||||
|
|
||||||
InitPropSheetPage(&psp[0], IDD_PROPPAGEKEYBOARD, (DLGPROC)KeyboardPageProc, pGlobalData);
|
InitPropSheetPage(&psp[0], IDD_PROPPAGEKEYBOARD, KeyboardPageProc, pGlobalData);
|
||||||
InitPropSheetPage(&psp[1], IDD_PROPPAGESOUND, (DLGPROC)SoundPageProc, pGlobalData);
|
InitPropSheetPage(&psp[1], IDD_PROPPAGESOUND, SoundPageProc, pGlobalData);
|
||||||
InitPropSheetPage(&psp[2], IDD_PROPPAGEDISPLAY, (DLGPROC)DisplayPageProc, pGlobalData);
|
InitPropSheetPage(&psp[2], IDD_PROPPAGEDISPLAY, DisplayPageProc, pGlobalData);
|
||||||
InitPropSheetPage(&psp[3], IDD_PROPPAGEMOUSE, (DLGPROC)MousePageProc, pGlobalData);
|
InitPropSheetPage(&psp[3], IDD_PROPPAGEMOUSE, MousePageProc, pGlobalData);
|
||||||
InitPropSheetPage(&psp[4], IDD_PROPPAGEGENERAL, (DLGPROC)GeneralPageProc, pGlobalData);
|
InitPropSheetPage(&psp[4], IDD_PROPPAGEGENERAL, GeneralPageProc, pGlobalData);
|
||||||
|
|
||||||
ret = PropertySheet(&psh);
|
ret = PropertySheet(&psh);
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ DisplayPageProc(HWND hwndDlg,
|
||||||
if (DialogBoxParam(hApplet,
|
if (DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_CONTRASTOPTIONS),
|
MAKEINTRESOURCE(IDD_CONTRASTOPTIONS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)HighContrastDlgProc,
|
HighContrastDlgProc,
|
||||||
(LPARAM)pGlobalData))
|
(LPARAM)pGlobalData))
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -257,7 +257,7 @@ GeneralPageProc(HWND hwndDlg,
|
||||||
if (DialogBoxParam(hApplet,
|
if (DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_SERIALKEYSOPTIONS),
|
MAKEINTRESOURCE(IDD_SERIALKEYSOPTIONS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)SerialKeysDlgProc,
|
SerialKeysDlgProc,
|
||||||
(LPARAM)pGlobalData))
|
(LPARAM)pGlobalData))
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -467,7 +467,7 @@ FilterKeysDlgProc(HWND hwndDlg,
|
||||||
DialogBoxParam(hApplet,
|
DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_BOUNCEKEYSOPTIONS),
|
MAKEINTRESOURCE(IDD_BOUNCEKEYSOPTIONS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)BounceKeysDlgProc,
|
BounceKeysDlgProc,
|
||||||
(LPARAM)pGlobalData);
|
(LPARAM)pGlobalData);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -492,7 +492,7 @@ FilterKeysDlgProc(HWND hwndDlg,
|
||||||
DialogBoxParam(hApplet,
|
DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_REPEATKEYSOPTIONS),
|
MAKEINTRESOURCE(IDD_REPEATKEYSOPTIONS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)RepeatKeysDlgProc,
|
RepeatKeysDlgProc,
|
||||||
(LPARAM)pGlobalData);
|
(LPARAM)pGlobalData);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -621,7 +621,7 @@ KeyboardPageProc(HWND hwndDlg,
|
||||||
if (DialogBoxParam(hApplet,
|
if (DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_STICKYKEYSOPTIONS),
|
MAKEINTRESOURCE(IDD_STICKYKEYSOPTIONS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)StickyKeysDlgProc,
|
StickyKeysDlgProc,
|
||||||
(LPARAM)pGlobalData))
|
(LPARAM)pGlobalData))
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
break;
|
break;
|
||||||
|
@ -635,7 +635,7 @@ KeyboardPageProc(HWND hwndDlg,
|
||||||
if (DialogBoxParam(hApplet,
|
if (DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_FILTERKEYSOPTIONS),
|
MAKEINTRESOURCE(IDD_FILTERKEYSOPTIONS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)FilterKeysDlgProc,
|
FilterKeysDlgProc,
|
||||||
(LPARAM)pGlobalData))
|
(LPARAM)pGlobalData))
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
break;
|
break;
|
||||||
|
@ -649,7 +649,7 @@ KeyboardPageProc(HWND hwndDlg,
|
||||||
if (DialogBoxParam(hApplet,
|
if (DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_TOGGLEKEYSOPTIONS),
|
MAKEINTRESOURCE(IDD_TOGGLEKEYSOPTIONS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)ToggleKeysDlgProc,
|
ToggleKeysDlgProc,
|
||||||
(LPARAM)pGlobalData))
|
(LPARAM)pGlobalData))
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -177,7 +177,7 @@ MousePageProc(HWND hwndDlg,
|
||||||
if (DialogBoxParam(hApplet,
|
if (DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_MOUSEKEYSOPTIONS),
|
MAKEINTRESOURCE(IDD_MOUSEKEYSOPTIONS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)MouseKeysDlgProc,
|
MouseKeysDlgProc,
|
||||||
(LPARAM)pGlobalData))
|
(LPARAM)pGlobalData))
|
||||||
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -97,16 +97,16 @@ Applet1(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
|
||||||
psh.nStartPage = 0;
|
psh.nStartPage = 0;
|
||||||
psh.phpage = hpsp;
|
psh.phpage = hpsp;
|
||||||
|
|
||||||
InitPropSheetPage(&psh, IDD_PROPPAGEPOWERSCHEMES, (DLGPROC)PowerSchemesDlgProc);
|
InitPropSheetPage(&psh, IDD_PROPPAGEPOWERSCHEMES, PowerSchemesDlgProc);
|
||||||
if (GetPwrCapabilities(&spc))
|
if (GetPwrCapabilities(&spc))
|
||||||
{
|
{
|
||||||
if (spc.SystemBatteriesPresent)
|
if (spc.SystemBatteriesPresent)
|
||||||
{
|
{
|
||||||
InitPropSheetPage(&psh, IDD_PROPPAGEALARMS, (DLGPROC)AlarmsDlgProc);
|
InitPropSheetPage(&psh, IDD_PROPPAGEALARMS, AlarmsDlgProc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, (DLGPROC)AdvancedDlgProc);
|
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, AdvancedDlgProc);
|
||||||
InitPropSheetPage(&psh, IDD_PROPPAGEHIBERNATE, (DLGPROC)HibernateDlgProc);
|
InitPropSheetPage(&psh, IDD_PROPPAGEHIBERNATE, HibernateDlgProc);
|
||||||
|
|
||||||
/* Load additional pages provided by shell extensions */
|
/* Load additional pages provided by shell extensions */
|
||||||
hpsxa = SHCreatePropSheetExtArray(HKEY_LOCAL_MACHINE, REGSTR_PATH_CONTROLSFOLDER TEXT("\\Power"), MAX_POWER_PAGES - psh.nPages);
|
hpsxa = SHCreatePropSheetExtArray(HKEY_LOCAL_MACHINE, REGSTR_PATH_CONTROLSFOLDER TEXT("\\Power"), MAX_POWER_PAGES - psh.nPages);
|
||||||
|
|
|
@ -134,35 +134,35 @@ AdvancedPageProc(HWND hwndDlg,
|
||||||
DialogBox(hApplet,
|
DialogBox(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_VIRTMEM),
|
MAKEINTRESOURCE(IDD_VIRTMEM),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)VirtMemDlgProc);
|
VirtMemDlgProc);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDC_USERPROFILE:
|
case IDC_USERPROFILE:
|
||||||
DialogBox(hApplet,
|
DialogBox(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_USERPROFILE),
|
MAKEINTRESOURCE(IDD_USERPROFILE),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)UserProfileDlgProc);
|
UserProfileDlgProc);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDC_STAREC:
|
case IDC_STAREC:
|
||||||
DialogBox(hApplet,
|
DialogBox(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_STARTUPRECOVERY),
|
MAKEINTRESOURCE(IDD_STARTUPRECOVERY),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)StartRecDlgProc);
|
StartRecDlgProc);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDC_SYSSETTINGS:
|
case IDC_SYSSETTINGS:
|
||||||
DialogBox(hApplet,
|
DialogBox(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_SYSSETTINGS),
|
MAKEINTRESOURCE(IDD_SYSSETTINGS),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)SysSettingsDlgProc);
|
SysSettingsDlgProc);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDC_ENVVAR:
|
case IDC_ENVVAR:
|
||||||
DialogBox(hApplet,
|
DialogBox(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_ENVIRONMENT_VARIABLES),
|
MAKEINTRESOURCE(IDD_ENVIRONMENT_VARIABLES),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)EnvironmentDlgProc);
|
EnvironmentDlgProc);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDC_ERRORREPORT:
|
case IDC_ERRORREPORT:
|
||||||
|
|
|
@ -163,7 +163,7 @@ CopyHardwareProfile(
|
||||||
if (DialogBoxParam(hApplet,
|
if (DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_COPYPROFILE),
|
MAKEINTRESOURCE(IDD_COPYPROFILE),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)CopyProfileDlgProc,
|
CopyProfileDlgProc,
|
||||||
(LPARAM)&ProfileNames) != IDOK)
|
(LPARAM)&ProfileNames) != IDOK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ RenameHardwareProfile(
|
||||||
if (DialogBoxParam(hApplet,
|
if (DialogBoxParam(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_RENAMEPROFILE),
|
MAKEINTRESOURCE(IDD_RENAMEPROFILE),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)RenameProfileDlgProc,
|
RenameProfileDlgProc,
|
||||||
(LPARAM)&ProfileNames) != IDOK)
|
(LPARAM)&ProfileNames) != IDOK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ HardwarePageProc(HWND hwndDlg,
|
||||||
DialogBox(hApplet,
|
DialogBox(hApplet,
|
||||||
MAKEINTRESOURCE(IDD_HARDWAREPROFILES),
|
MAKEINTRESOURCE(IDD_HARDWAREPROFILES),
|
||||||
hwndDlg,
|
hwndDlg,
|
||||||
(DLGPROC)HardProfDlgProc);
|
HardProfDlgProc);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -147,10 +147,10 @@ SystemApplet(VOID)
|
||||||
psh.phpage = hpsp;
|
psh.phpage = hpsp;
|
||||||
psh.pfnCallback = NULL;
|
psh.pfnCallback = NULL;
|
||||||
|
|
||||||
InitPropSheetPage(&psh, IDD_PROPPAGEGENERAL, (DLGPROC) GeneralPageProc);
|
InitPropSheetPage(&psh, IDD_PROPPAGEGENERAL, GeneralPageProc);
|
||||||
hNetIdDll = AddNetIdPage(&psh);
|
hNetIdDll = AddNetIdPage(&psh);
|
||||||
InitPropSheetPage(&psh, IDD_PROPPAGEHARDWARE, (DLGPROC) HardwarePageProc);
|
InitPropSheetPage(&psh, IDD_PROPPAGEHARDWARE, HardwarePageProc);
|
||||||
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, (DLGPROC) AdvancedPageProc);
|
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, AdvancedPageProc);
|
||||||
|
|
||||||
/* Load additional pages provided by shell extensions */
|
/* Load additional pages provided by shell extensions */
|
||||||
hpsxa = SHCreatePropSheetExtArray(HKEY_LOCAL_MACHINE, REGSTR_PATH_CONTROLSFOLDER TEXT("\\System"), MAX_SYSTEM_PAGES - psh.nPages);
|
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.nStartPage = 0;
|
||||||
psh.ppsp = psp;
|
psh.ppsp = psp;
|
||||||
|
|
||||||
InitPropSheetPage(&psp[0], IDD_DATETIMEPAGE, (DLGPROC) DateTimePageProc);
|
InitPropSheetPage(&psp[0], IDD_DATETIMEPAGE, DateTimePageProc);
|
||||||
InitPropSheetPage(&psp[1], IDD_TIMEZONEPAGE, (DLGPROC) TimeZonePageProc);
|
InitPropSheetPage(&psp[1], IDD_TIMEZONEPAGE, TimeZonePageProc);
|
||||||
InitPropSheetPage(&psp[2], IDD_INETTIMEPAGE, (DLGPROC) InetTimePageProc);
|
InitPropSheetPage(&psp[2], IDD_INETTIMEPAGE, InetTimePageProc);
|
||||||
|
|
||||||
Ret = (LONG)(PropertySheetW(&psh) != -1);
|
Ret = (LONG)(PropertySheetW(&psh) != -1);
|
||||||
|
|
||||||
|
|
|
@ -638,7 +638,7 @@ GroupProperties(HWND hwndDlg)
|
||||||
psh.nStartPage = 0;
|
psh.nStartPage = 0;
|
||||||
psh.ppsp = psp;
|
psh.ppsp = psp;
|
||||||
|
|
||||||
InitPropSheetPage(&psp[0], IDD_GROUP_GENERAL, (DLGPROC)GroupGeneralPageProc, szGroupName);
|
InitPropSheetPage(&psp[0], IDD_GROUP_GENERAL, GroupGeneralPageProc, szGroupName);
|
||||||
|
|
||||||
return (PropertySheet(&psh) == IDOK);
|
return (PropertySheet(&psh) == IDOK);
|
||||||
}
|
}
|
||||||
|
|
|
@ -928,9 +928,9 @@ UserProperties(HWND hwndDlg)
|
||||||
psh.nStartPage = 0;
|
psh.nStartPage = 0;
|
||||||
psh.ppsp = psp;
|
psh.ppsp = psp;
|
||||||
|
|
||||||
InitPropSheetPage(&psp[0], IDD_USER_GENERAL, (DLGPROC)UserGeneralPageProc, szUserName);
|
InitPropSheetPage(&psp[0], IDD_USER_GENERAL, UserGeneralPageProc, szUserName);
|
||||||
InitPropSheetPage(&psp[1], IDD_USER_MEMBERSHIP, (DLGPROC)UserMembershipPageProc, szUserName);
|
InitPropSheetPage(&psp[1], IDD_USER_MEMBERSHIP, UserMembershipPageProc, szUserName);
|
||||||
InitPropSheetPage(&psp[2], IDD_USER_PROFILE, (DLGPROC)UserProfilePageProc, szUserName);
|
InitPropSheetPage(&psp[2], IDD_USER_PROFILE, UserProfilePageProc, szUserName);
|
||||||
|
|
||||||
return (PropertySheet(&psh) == IDOK);
|
return (PropertySheet(&psh) == IDOK);
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,9 +64,9 @@ UsrmgrApplet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
|
||||||
psh.nStartPage = 0;
|
psh.nStartPage = 0;
|
||||||
psh.ppsp = psp;
|
psh.ppsp = psp;
|
||||||
|
|
||||||
InitPropSheetPage(&psp[0], IDD_USERS, (DLGPROC)UsersPageProc);
|
InitPropSheetPage(&psp[0], IDD_USERS, UsersPageProc);
|
||||||
InitPropSheetPage(&psp[1], IDD_GROUPS, (DLGPROC)GroupsPageProc);
|
InitPropSheetPage(&psp[1], IDD_GROUPS, GroupsPageProc);
|
||||||
InitPropSheetPage(&psp[2], IDD_EXTRA, (DLGPROC)ExtraPageProc);
|
InitPropSheetPage(&psp[2], IDD_EXTRA, ExtraPageProc);
|
||||||
|
|
||||||
return (LONG)(PropertySheet(&psh) != -1);
|
return (LONG)(PropertySheet(&psh) != -1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,7 +113,7 @@ DWORD WINAPI drvCommConfigDialogW(LPCWSTR lpszDevice,
|
||||||
DialogInfo.lpCC = lpCommConfig;
|
DialogInfo.lpCC = lpCommConfig;
|
||||||
|
|
||||||
return DialogBoxParamW(hDllInstance, MAKEINTRESOURCEW(IDD_COMMDLG),
|
return DialogBoxParamW(hDllInstance, MAKEINTRESOURCEW(IDD_COMMDLG),
|
||||||
hWnd, (DLGPROC)CommDlgProc, (LPARAM)&DialogInfo);
|
hWnd, CommDlgProc, (LPARAM)&DialogInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -186,10 +186,9 @@ DWORD WINAPI drvGetDefaultCommConfigA(LPCSTR lpszDevice,
|
||||||
*
|
*
|
||||||
************************************/
|
************************************/
|
||||||
|
|
||||||
LRESULT CommDlgProc(HWND hDlg,
|
INT_PTR
|
||||||
UINT Msg,
|
CALLBACK
|
||||||
WPARAM wParam,
|
CommDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
LPARAM lParam)
|
|
||||||
{
|
{
|
||||||
LPDIALOG_INFO lpDlgInfo = NULL;
|
LPDIALOG_INFO lpDlgInfo = NULL;
|
||||||
HWND hBox;
|
HWND hBox;
|
||||||
|
|
|
@ -82,7 +82,10 @@ DWORD WINAPI drvGetDefaultCommConfigA(LPCSTR lpszDevice,
|
||||||
*
|
*
|
||||||
************************************/
|
************************************/
|
||||||
|
|
||||||
LRESULT CommDlgProc(HWND hDlg,
|
INT_PTR
|
||||||
|
CALLBACK
|
||||||
|
CommDlgProc(
|
||||||
|
HWND hDlg,
|
||||||
UINT Msg,
|
UINT Msg,
|
||||||
WPARAM wParam,
|
WPARAM wParam,
|
||||||
LPARAM lParam);
|
LPARAM lParam);
|
||||||
|
|
Binary file not shown.
|
@ -227,18 +227,16 @@ void Display()
|
||||||
Sleep(15); // Create A Short Delay (15 Milliseconds)
|
Sleep(15); // Create A Short Delay (15 Milliseconds)
|
||||||
|
|
||||||
glFlush ();
|
glFlush ();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL AboutProc(HWND hdlg, UINT msg, WPARAM wpm, LPARAM lpm){
|
INT_PTR CALLBACK AboutProc(HWND hdlg, UINT msg, WPARAM wpm, LPARAM lpm){
|
||||||
|
|
||||||
switch(msg){
|
switch(msg){
|
||||||
case WM_CTLCOLORSTATIC:
|
case WM_CTLCOLORSTATIC:
|
||||||
if(((HWND)lpm == GetDlgItem(hdlg, WEBPAGE1)) || ((HWND)lpm == GetDlgItem(hdlg, WEBPAGE2)))
|
if(((HWND)lpm == GetDlgItem(hdlg, WEBPAGE1)) || ((HWND)lpm == GetDlgItem(hdlg, WEBPAGE2)))
|
||||||
{
|
{
|
||||||
SetTextColor((HDC)wpm, RGB(0,0,255));
|
SetTextColor((HDC)wpm, RGB(0,0,255));
|
||||||
SetBkColor((HDC)wpm, (COLORREF)GetSysColor(COLOR_3DFACE));
|
SetBkColor((HDC)wpm, (COLORREF)GetSysColor(COLOR_3DFACE));
|
||||||
return((int)GetSysColorBrush(COLOR_3DFACE));
|
return (INT_PTR)GetSysColorBrush(COLOR_3DFACE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
@ -314,7 +312,7 @@ BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT message,
|
||||||
EndDialog(hDlg, TRUE);
|
EndDialog(hDlg, TRUE);
|
||||||
break;
|
break;
|
||||||
case IDABOUT:
|
case IDABOUT:
|
||||||
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLG_ABOUT), hDlg, (DLGPROC)AboutProc);
|
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLG_ABOUT), hDlg, AboutProc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue