2006-04-09 12:15:43 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Applications
|
2007-01-05 20:15:07 +00:00
|
|
|
* LICENSE: LGPL - See COPYING in the top level directory
|
2015-09-09 13:13:35 +00:00
|
|
|
* FILE: base/applications/msconfig/generalpage.c
|
2006-04-09 12:15:43 +00:00
|
|
|
* PURPOSE: General page message handler
|
|
|
|
* COPYRIGHT: Copyright 2005-2006 Christoph von Wittich <Christoph@ApiViewer.de>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include "precomp.h"
|
2006-02-16 23:18:11 +00:00
|
|
|
|
|
|
|
HWND hGeneralPage;
|
|
|
|
HWND hGeneralDialog;
|
|
|
|
|
2008-07-01 22:36:31 +00:00
|
|
|
VOID
|
|
|
|
EnableCheckboxControls(HWND hDlg, BOOL bEnable)
|
|
|
|
{
|
|
|
|
EnableWindow(GetDlgItem(hDlg, IDC_CBX_SYSTEM_INI), bEnable);
|
|
|
|
EnableWindow(GetDlgItem(hDlg, IDC_CBX_SYSTEM_SERVICE), bEnable);
|
|
|
|
EnableWindow(GetDlgItem(hDlg, IDC_CBX_STARTUP_ITEM), bEnable);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-02-16 23:18:11 +00:00
|
|
|
INT_PTR CALLBACK
|
|
|
|
GeneralPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|
|
|
{
|
2006-06-29 22:12:40 +00:00
|
|
|
UNREFERENCED_PARAMETER(lParam);
|
2006-06-23 20:49:21 +00:00
|
|
|
|
2008-07-01 22:36:31 +00:00
|
|
|
switch (message)
|
|
|
|
{
|
2006-02-16 23:18:11 +00:00
|
|
|
case WM_INITDIALOG:
|
|
|
|
hGeneralDialog = hDlg;
|
2006-08-29 13:01:47 +00:00
|
|
|
SetWindowPos(hDlg, NULL, 10, 32, 0, 0, SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSIZE | SWP_NOZORDER);
|
2008-07-01 22:36:31 +00:00
|
|
|
/* FIXME */
|
|
|
|
SendDlgItemMessage(hDlg, IDC_CBX_NORMAL_START, BM_SETCHECK, BST_CHECKED, 0);
|
|
|
|
EnableCheckboxControls(hDlg, FALSE);
|
2006-08-29 13:01:47 +00:00
|
|
|
return TRUE;
|
2008-07-01 22:36:31 +00:00
|
|
|
case WM_COMMAND:
|
|
|
|
switch(LOWORD(wParam))
|
|
|
|
{
|
|
|
|
case IDC_CBX_NORMAL_START:
|
|
|
|
case IDC_CBX_DIAGNOSTIC_START:
|
|
|
|
EnableCheckboxControls(hDlg, FALSE);
|
|
|
|
break;
|
|
|
|
case IDC_CBX_SELECTIVE_STARTUP:
|
|
|
|
EnableCheckboxControls(hDlg, TRUE);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2006-08-29 13:01:47 +00:00
|
|
|
}
|
|
|
|
return 0;
|
2006-02-16 23:18:11 +00:00
|
|
|
}
|