[APPLICATIONS] Improve the FILE header section. Brought to you by Adam Stachowicz...
[reactos.git] / reactos / base / applications / msconfig_new / generalpage.c
1 /*
2 * PROJECT: ReactOS Applications
3 * LICENSE: LGPL - See COPYING in the top level directory
4 * FILE: base/applications/msconfig_new/generalpage.c
5 * PURPOSE: General page message handler
6 * COPYRIGHT: Copyright 2005-2006 Christoph von Wittich <Christoph@ApiViewer.de>
7 *
8 */
9
10 #include "precomp.h"
11
12 static LPCWSTR lpszRestoreProgPath1 = L"%SystemRoot%\\System32\\rstrui.exe";
13 static LPCWSTR lpszRestoreProgPath2 = L"%SystemRoot%\\System32\\restore\\rstrui.exe";
14
15 HWND hGeneralPage;
16
17 #if 0 // TODO: Will be used later on...
18 static VOID EnableSelectiveStartupControls(BOOL bEnable)
19 {
20 assert(hGeneralPage);
21
22 EnableWindow(GetDlgItem(hGeneralPage, IDC_CBX_LOAD_SYSTEM_SERVICES), bEnable);
23 EnableWindow(GetDlgItem(hGeneralPage, IDC_CBX_LOAD_STARTUP_ITEMS) , bEnable);
24
25 EnableWindow(GetDlgItem(hGeneralPage, IDC_CBX_USE_ORIGINAL_BOOTCFG), bEnable);
26
27 // EnableWindow(GetDlgItem(hGeneralPage, IDC_RB_USE_ORIGINAL_BOOTCAT), bEnable);
28 // EnableWindow(GetDlgItem(hGeneralPage, IDC_RB_USE_MODIFIED_BOOTCAT), (bEnable ? !bIsOriginalBootIni : FALSE));
29
30 EnableWindow(GetDlgItem(hGeneralPage, IDC_CBX_SYSTEM_INI), bEnable);
31 EnableWindow(GetDlgItem(hGeneralPage, IDC_CBX_WIN_INI) , bEnable);
32
33 return;
34 }
35
36 static VOID CheckSelectiveStartupControls(BOOL bCheck)
37 {
38 assert(hGeneralPage);
39
40 Button_SetCheck(GetDlgItem(hGeneralPage, IDC_CBX_LOAD_SYSTEM_SERVICES), (bCheck ? BST_CHECKED : BST_UNCHECKED));
41 Button_SetCheck(GetDlgItem(hGeneralPage, IDC_CBX_LOAD_STARTUP_ITEMS) , (bCheck ? BST_CHECKED : BST_UNCHECKED));
42 Button_SetCheck(GetDlgItem(hGeneralPage, IDC_CBX_USE_ORIGINAL_BOOTCFG), (bCheck ? BST_CHECKED : BST_UNCHECKED));
43 Button_SetCheck(GetDlgItem(hGeneralPage, IDC_CBX_SYSTEM_INI) , (bCheck ? BST_CHECKED : BST_UNCHECKED));
44 Button_SetCheck(GetDlgItem(hGeneralPage, IDC_CBX_WIN_INI) , (bCheck ? BST_CHECKED : BST_UNCHECKED));
45
46 return;
47 }
48 #endif
49
50 INT_PTR CALLBACK
51 GeneralPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
52 {
53 UNREFERENCED_PARAMETER(lParam);
54
55 switch (message)
56 {
57 case WM_INITDIALOG:
58 {
59 hGeneralPage = hDlg;
60 PropSheet_UnChanged(hMainWnd, hGeneralPage);
61
62 #if 0
63 /* FIXME */
64 SendDlgItemMessage(hDlg, IDC_RB_NORMAL_STARTUP, BM_SETCHECK, BST_CHECKED, 0);
65 EnableCheckboxControls(hDlg, FALSE);
66 #endif
67
68 return TRUE;
69 }
70 }
71
72 return FALSE;
73 }