mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
Remove stray semicolon, change indentation.
svn path=/trunk/; revision=37918
This commit is contained in:
parent
309ea97e6c
commit
2772b79efd
1 changed files with 23 additions and 21 deletions
|
@ -70,31 +70,33 @@ static VOID
|
||||||
InitRadioButtons(HWND hWnd)
|
InitRadioButtons(HWND hWnd)
|
||||||
{
|
{
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
|
|
||||||
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\Display"),
|
if (RegOpenKeyEx(HKEY_CURRENT_USER,
|
||||||
0, KEY_READ, &hKey) == ERROR_SUCCESS)
|
_T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\Display"),
|
||||||
{
|
0, KEY_READ, &hKey) == ERROR_SUCCESS)
|
||||||
TCHAR szBuf[64];
|
{
|
||||||
|
TCHAR szBuf[64];
|
||||||
DWORD dwSize = 64;
|
DWORD dwSize = 64;
|
||||||
|
|
||||||
if (RegQueryValueEx(hKey, _T("DynaSettingsChange"), 0, NULL,
|
if (RegQueryValueEx(hKey, _T("DynaSettingsChange"), 0, NULL,
|
||||||
(LPBYTE)szBuf, &dwSize) == ERROR_SUCCESS);
|
(LPBYTE)szBuf, &dwSize) == ERROR_SUCCESS)
|
||||||
|
{
|
||||||
switch (_ttoi(szBuf))
|
switch (_ttoi(szBuf))
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
SendDlgItemMessage(hWnd, IDC_RESTART_RB, BM_SETCHECK, 1, 1);
|
SendDlgItemMessage(hWnd, IDC_RESTART_RB, BM_SETCHECK, 1, 1);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
SendDlgItemMessage(hWnd, IDC_WITHOUTREBOOT_RB, BM_SETCHECK, 1, 1);
|
SendDlgItemMessage(hWnd, IDC_WITHOUTREBOOT_RB, BM_SETCHECK, 1, 1);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
SendDlgItemMessage(hWnd, IDC_ASKME_RB, BM_SETCHECK, 1, 1);
|
SendDlgItemMessage(hWnd, IDC_ASKME_RB, BM_SETCHECK, 1, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
|
@ -115,7 +117,7 @@ AdvGeneralPageProc(HWND hwndDlg,
|
||||||
DispDevice = (PDISPLAY_DEVICE_ENTRY)(((LPPROPSHEETPAGE)lParam)->lParam);
|
DispDevice = (PDISPLAY_DEVICE_ENTRY)(((LPPROPSHEETPAGE)lParam)->lParam);
|
||||||
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)DispDevice);
|
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)DispDevice);
|
||||||
|
|
||||||
InitFontSizeList(hwndDlg);
|
InitFontSizeList(hwndDlg);
|
||||||
InitRadioButtons(hwndDlg);
|
InitRadioButtons(hwndDlg);
|
||||||
|
|
||||||
Ret = TRUE;
|
Ret = TRUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue