- add hardware profile and start and recovery dialogs

- popup a message box for dialogs not yet implemented

svn path=/trunk/; revision=24134
This commit is contained in:
Ged Murphy 2006-09-15 16:37:26 +00:00
parent 4094a71f3e
commit c09e1c12ab
11 changed files with 378 additions and 83 deletions

View file

@ -44,7 +44,16 @@ AdvancedPageProc(HWND hwndDlg,
DialogBox(hApplet,
MAKEINTRESOURCE(IDD_USERPROFILE),
hwndDlg,
(DLGPROC)UserProfileDialogProc);
(DLGPROC)UserProfileDlgProc);
}
break;
case IDC_STAREC:
{
DialogBox(hApplet,
MAKEINTRESOURCE(IDD_STARTUPRECOVERY),
hwndDlg,
(DLGPROC)StartRecDlgProc);
}
break;

View file

@ -7,8 +7,9 @@ FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
CONTROL "", IDC_ROSIMG, "Static", SS_OWNERDRAW, 4, 5, 248, 111
LTEXT "System:", IDC_STATIC, 4, 132, 32, 9
LTEXT REACTOS_STR_PRODUCT_NAME, IDC_STATIC, 10, 144, 116, 9
LTEXT "Version "REACTOS_STR_PRODUCT_VERSION, IDC_STATIC, 10, 153, 116, 9
//LTEXT REACTOS_STR_PRODUCT_NAME, IDC_STATIC, 10, 144, 116, 9
LTEXT "Version ", IDC_STATIC, 10, 153, 25, 9
//LTEXT REACTOS_STR_PRODUCT_VERSION, IDC_STATIC, 35, 153, 91, 9
LTEXT "Machine:", IDC_STATIC, 124, 132, 34, 9
LTEXT "", IDC_PROCESSORMANUFACTURER, 130, 144, 118, 9
LTEXT "", IDC_PROCESSOR, 130, 153, 118, 9
@ -17,12 +18,13 @@ BEGIN
PUSHBUTTON "View licence...", IDC_LICENCE, 90, 199, 78, 13
END
IDD_PROPPAGECOMPUTER DIALOGEX 0, 0, 256, 218
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Computer Name"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
ICON IDI_DEVMGR, IDC_ICON1, 4, 3, 26, 24, SS_ICON
ICON IDI_COMPNAME, IDC_STATIC, 4, 3, 26, 24, SS_ICON
LTEXT "ReactOS uses the following information to identify your computer on the network.", IDC_STATIC, 40, 5, 204, 20
LTEXT "Computer Description:", IDC_STATIC, 6, 40, 70, 9
EDITTEXT IDC_COMPDESC, 98, 38, 146, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
@ -44,17 +46,17 @@ CAPTION "Hardware"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
GROUPBOX "Device Manager", IDC_STATIC, 6, 7, 244, 61
ICON IDI_DEVMGR, IDC_ICON1, 12, 18, 23, 21, SS_ICON
ICON IDI_DEVMGR, IDC_STATIC, 12, 18, 23, 21, SS_ICON
LTEXT "The Device Manager lists all the hardware devices installed on your computer. Use the Device Manager to change the properties of any device.", IDC_STATIC, 42, 18, 204, 24
PUSHBUTTON "&Device Manager...", IDC_HARDWARE_DEVICE_MANAGER, 154, 48, 90, 15
GROUPBOX "Hardware Wizard", IDC_STATIC, 6, 79, 244, 61
ICON IDI_DEVMGR, IDC_ICON1, 12, 90, 23, 21, SS_ICON
ICON IDI_DEVMGR, IDC_STATIC, 12, 90, 23, 21, SS_ICON
LTEXT "The Hardware wizard helps you install, uninstall, repair, unplug, eject, and configure your hardware.", IDC_STATIC, 42, 90, 204, 24
PUSHBUTTON "&Hardware Wizard...", IDC_HARDWARE_WIZARD, 154, 120, 90, 15
GROUPBOX "Hardware Profiles", IDC_STATIC, 6, 149, 244, 61
ICON IDI_DEVMGR, IDC_ICON1, 12, 160, 23, 21, SS_ICON
ICON IDI_HARDPROF, IDC_STATIC, 12, 160, 23, 21, SS_ICON
LTEXT "Hardware profiles provide a way for you to set up and store different hardware configurations.", IDC_STATIC, 42, 160, 204, 24
PUSHBUTTON "Hard&ware Profiles...", IDC_HARDWARE_PROFILE, 154, 190, 90, 15
END
@ -83,12 +85,58 @@ BEGIN
END
IDD_HARDWAREPROFILES DIALOGEX 6, 18, 254, 234
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Hardware Profiles"
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_HARDPROF, IDC_STATIC, 8, 11, 18, 20, SS_ICON
LTEXT "You can set up hardware profiles for different hardware configurations. At startup, you can choose the profile you want to use.", IDC_STATIC, 46, 11, 188, 25
LTEXT "Available hardware profiles:", IDC_STATIC, 8, 41, 120, 8
LISTBOX IDC_HRDPROFLSTBOX, 8, 52, 215, 54, LBS_NOTIFY
PUSHBUTTON "", IDC_HRDPROFUP, 232, 59, 15, 15
PUSHBUTTON "", IDC_HRDPROFDWN, 232, 79, 15, 15
PUSHBUTTON "&Properties", IDC_HRDPROFPROP, 8, 106, 50, 14
PUSHBUTTON "&Copy", IDC_HRDPROFCOPY, 63, 106, 50, 14
PUSHBUTTON "&Rename", IDC_HRDPROFRENAME, 118, 106, 50, 14
PUSHBUTTON "&Delete", IDC_HRDPROFDEL, 173, 106, 50, 14
GROUPBOX "Hardware profiles selection", IDC_STATIC, 7, 130, 240, 75
LTEXT "When Windows starts:", IDC_STATIC, 14, 142, 210, 8
//RADIOBUTTON "&Wait until I select a hardware profile", IDC_HRDPROFWAIT, 14, 158, 133, 8
//RADIOBUTTON "&Select the first profile listed if I don't select a profile in", IDC_HRDPROFSELECT, 14, 173, 190, 8
CONTROL "&Wait until I select a hardware profile", IDC_HRDPROFWAIT, "button", BS_AUTORADIOBUTTON, 14, 158, 133, 8
CONTROL "&Select the first profile listed if I don't select a profile in", IDC_HRDPROFSELECT, "button", BS_AUTORADIOBUTTON, 14, 173, 190, 8
LTEXT "seconds", IDC_STATIC, 65, 187, 35, 8
EDITTEXT IDC_HRDPROFEDIT, 25, 185, 35, 12
CONTROL "", IDC_HRDPROFUPDWN, "msctls_updown32", UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS | WS_CHILD | WS_VISIBLE, 25, 185, 7, 10
DEFPUSHBUTTON "OK", IDOK, 143, 213, 50, 14
PUSHBUTTON "Cancel", IDCANCEL, 197, 213, 50, 14
END
IDD_RENAMEPROFILE DIALOGEX 12, 26, 256, 52
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Rename Profile"
FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "From:", IDC_STATIC, 5, 10, 20, 8
LTEXT "", IDC_RENPROFEDITFROM, 30, 10, 160, 10
LTEXT "To:", IDC_STATIC, 5, 30, 20, 8
EDITTEXT IDC_RENPROFEDITTO, 30, 30, 160, 12
DEFPUSHBUTTON "OK", IDOK, 196, 6, 50, 14
PUSHBUTTON "Cancel", IDCANCEL, 196, 24, 50, 14
END
IDD_USERPROFILE DIALOGEX 0, 0, 256, 218
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "User Profiles"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
ICON IDI_DEVMGR, IDC_ICON1, 6, 11, 16, 16, SS_ICON
ICON IDI_USERPROF, IDC_STATIC, 6, 11, 16, 16, SS_ICON
LTEXT "User profiles contain desktop settings and other information related to your login. A different profile can be created on each computer you use, or you can select a roaming profile that is the same on every computer you use.",
IDC_STATIC, 40, 11, 204, 35
LTEXT "Profiles stored on this computer:", IDC_STATIC, 16, 51, 204, 9
@ -98,16 +146,52 @@ BEGIN
LTEXT "To create new user accounts, open ", IDC_STATIC, 10, 175, 116, 9
// FIXME: needs custom control writing
// CONTROL "", IDC_CUST_LINK, "LinkCtlProc", WS_CHILD | VS_VISIBLE | WS_TABSTOP, 127, 175, 60, 9
//CONTROL "", IDC_CUST_LINK, "LinkCtlProc", WS_CHILD | VS_VISIBLE | WS_TABSTOP, 127, 175, 60, 9
LTEXT "in Control Panel.", IDC_STATIC, 184, 175, 64, 9
PUSHBUTTON "OK", IDOK, 134, 197, 54, 13
DEFPUSHBUTTON "OK", IDOK, 134, 197, 54, 13
PUSHBUTTON "Cancel", IDCANCEL, 196, 197, 54, 13
END
IDD_STARTUPRECOVERY DIALOGEX 6, 18, 252, 280
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Startup and Recovery"
FONT 8, "MS Shell Dlg"
BEGIN
GROUPBOX "System startup", IDC_STATIC, 7, 12, 238, 95
LTEXT "Default operating &system:", IDC_STATIC, 14, 26, 100, 8
COMBOBOX IDC_STRECOSCOMBO, 14, 37, 224, 46, CBS_DROPDOWNLIST
//CHECKBOX "&Time to display list of operating systems:", IDC_STRECLIST, 14, 56, 150, 8
CONTROL "&Time to display list of operating systems:", IDC_STRECLIST, "button", BS_CHECKBOX, 14, 56, 150, 8
EDITTEXT IDC_STRRECLISTEDIT, 179, 54, 30, 12
CONTROL "", IDC_STRRECLISTUPDWN, "msctls_updown32", UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS | WS_CHILD | WS_VISIBLE, 0, 0, 8, 13
LTEXT "seconds", IDC_STATIC, 215, 56, 25, 8
CONTROL "Time to &display recovery options when needed:", IDC_STRRECREC, "button", BS_CHECKBOX, 14, 70, 163, 8
EDITTEXT IDC_STRRECRECEDIT, 179, 68, 30, 12
CONTROL "", IDC_STRRECRECUPDWN, "msctls_updown32", UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS | WS_CHILD | WS_VISIBLE, 0, 0, 8, 13
LTEXT "seconds", IDC_STATIC, 215, 70, 25, 8
LTEXT "To edit the startup options file manually, click Edit.", IDC_STATIC, 14, 89, 187, 8
PUSHBUTTON "&Edit", IDC_STRRECEDIT, 188, 87, 50, 14
GROUPBOX "System failure", IDC_STATIC, 7, 111, 238, 140
CONTROL "&Write an event to the system log", IDC_STRRECWRITEEVENT, "button", BS_AUTOCHECKBOX, 14, 124, 148, 10
CONTROL "Se&nd an administrative alert", IDC_STRRECSENDALERT, "button", BS_AUTOCHECKBOX, 14, 138, 148, 10
CONTROL "Automatically &restart", IDC_STRRECRESTART, "button", BS_AUTOCHECKBOX, 14, 152, 145, 10
GROUPBOX "Write debugging information", IDC_STATIC, 12, 167, 227, 76
COMBOBOX IDC_STRRECDEBUGCOMBO, 17, 182, 151, 49, CBS_DROPDOWNLIST
LTEXT "Dump &file:", IDC_STATIC, 17, 202, 150, 8
EDITTEXT IDC_STRRECDUMPFILE, 17, 210, 153, 12
CONTROL "&Overwrite any existing file", IDC_STRRECOVERWRITE, "button", BS_AUTOCHECKBOX, 17, 228, 125, 10
DEFPUSHBUTTON "OK", IDOK, 141, 259, 50, 14
PUSHBUTTON "Cancel", IDCANCEL, 195, 259, 50, 14
END
IDD_VIRTMEM DIALOGEX 6, 6, 223, 248
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Virtual Memory"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
@ -117,9 +201,9 @@ BEGIN
10, 16, 204, 52, WS_EX_CLIENTEDGE
GROUPBOX "Paging file size for selected drive", IDC_DRIVEGROUP, 10, 70, 204, 104
LTEXT "Drive:", IDC_STATIC, 20, 80, 20, 8
LTEXT "Drive:", IDC_STATIC, 20, 80, 20, 8
LTEXT "", IDC_DRIVE, 88, 81, 100, 9
LTEXT "Space available:", IDC_STATIC, 20, 92, 56, 9
LTEXT "Space available:", IDC_STATIC, 20, 92, 56, 9
LTEXT "", IDC_SPACEAVAIL, 84, 92, 104, 9
LTEXT "&Initial size (MB):", -1, 22, 118, 54, 9
LTEXT "Ma&ximum size (MB):", -1, 22, 131, 64, 9
@ -131,20 +215,20 @@ BEGIN
PUSHBUTTON "Set", IDC_SET, 158, 155, 50, 13
GROUPBOX "Total paging file size for all drives", IDC_TOTALGROUP, 10, 177, 204, 46
LTEXT "Minimum allowed:", IDC_STATIC, 18, 188, 58, 9
LTEXT "Minimum allowed:", IDC_STATIC, 18, 188, 58, 9
LTEXT "", IDC_MINIMUM, 86, 186, 100, 9
LTEXT "Recommended:", IDC_STATIC, 18, 199, 52, 9
LTEXT "", IDC_RECOMMENDED, 88, 197, 100, 9
LTEXT "Currently allocated:", IDC_STATIC, 18, 210, 66, 9
LTEXT "", IDC_CURRENT, 88, 208, 100, 9
PUSHBUTTON "OK", IDOK, 114, 232, 48, 13
DEFPUSHBUTTON "OK", IDOK, 114, 232, 48, 13
PUSHBUTTON "Cancel", IDCANCEL, 168, 232, 48, 13
END
IDD_ENVIRONMENT_VARIABLES DIALOGEX 6, 18, 252, 245
STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Environment Variables"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
@ -164,7 +248,7 @@ BEGIN
PUSHBUTTON "Ne&w...", IDC_SYSTEM_VARIABLE_NEW, 80, 194, 50, 14
PUSHBUTTON "Ed&it...", IDC_SYSTEM_VARIABLE_EDIT, 134, 194, 50, 14
PUSHBUTTON "De&lete", IDC_SYSTEM_VARIABLE_DELETE, 188, 194, 50, 14
PUSHBUTTON "OK", IDOK, 141, 224, 50, 14, WS_GROUP
DEFPUSHBUTTON "OK", IDOK, 141, 224, 50, 14, WS_GROUP
PUSHBUTTON "Cancel", IDCANCEL, 195, 224, 50, 14
END
@ -178,17 +262,18 @@ BEGIN
EDITTEXT IDC_VARIABLE_NAME, 75, 12, 145, 12, ES_AUTOHSCROLL
LTEXT "Variable &Value:", IDC_STATIC, 7, 32, 50, 8
EDITTEXT IDC_VARIABLE_VALUE, 75, 30, 145, 12, ES_AUTOHSCROLL
PUSHBUTTON "OK",IDOK,116,50,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,170,50,50,14
DEFPUSHBUTTON "OK", IDOK, 116, 50, 50, 14
PUSHBUTTON "Cancel", IDCANCEL, 170, 50, 50, 14
END
IDD_LICENCE DIALOGEX 6, 6, 267, 142
IDD_LICENCE DIALOGEX 6, 5, 267, 159
CAPTION "Licence"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
STYLE WS_BORDER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
STYLE WS_BORDER | WS_THICKFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
BEGIN
EDITTEXT IDC_LICENCEEDIT, 0, 0, 268, 142, WS_VISIBLE | WS_VSCROLL | WS_TABSTOP | ES_READONLY | ES_MULTILINE
EDITTEXT IDC_LICENCEEDIT, 6, 3, 255, 131, WS_VSCROLL | ES_READONLY | ES_MULTILINE
DEFPUSHBUTTON "OK", IDOK, 106, 142, 54, 13
END

View file

@ -0,0 +1,88 @@
/*
* PROJECT: ReactOS System Control Panel Applet
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/cpl/sysdm/hardprof.c
* PURPOSE: Modify hardware profiles
* COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
*
*/
#include "precomp.h"
/* Property page dialog callback */
static INT_PTR CALLBACK
RenameProfDlgProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
UNREFERENCED_PARAMETER(wParam);
UNREFERENCED_PARAMETER(hwndDlg);
switch(uMsg)
{
case WM_INITDIALOG:
{
MessageBox(hwndDlg, _T("Dialog not yet implemented!"), NULL, 0);
}
break;
case WM_COMMAND:
{
if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
{
EndDialog(hwndDlg,
LOWORD(wParam));
return TRUE;
}
}
break;
}
return FALSE;
}
/* Property page dialog callback */
INT_PTR CALLBACK
HardProfDlgProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
UNREFERENCED_PARAMETER(wParam);
UNREFERENCED_PARAMETER(hwndDlg);
switch(uMsg)
{
case WM_INITDIALOG:
{
MessageBox(hwndDlg, _T("Dialog not yet implemented!"), NULL, 0);
}
break;
case WM_COMMAND:
{
switch (LOWORD(wParam))
{
case IDC_HRDPROFRENAME:
{
DialogBox(hApplet,
MAKEINTRESOURCE(IDD_RENAMEPROFILE),
hwndDlg,
(DLGPROC)RenameProfDlgProc);
}
case IDOK:
case IDCANCEL:
{
EndDialog(hwndDlg,
LOWORD(wParam));
return TRUE;
}
}
}
break;
}
return FALSE;
}

View file

@ -4,59 +4,79 @@
* FILE: dll/cpl/sysdm/hardware.c
* PURPOSE: Hardware devices
* COPYRIGHT: Copyright Thomas Weidenmueller <w3seek@reactos.org>
* Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
*
*/
#include "precomp.h"
typedef BOOL (STDCALL *PDEVMGREXEC)(HWND hWndParent, HINSTANCE hInst, PVOID Unknown, int nCmdShow);
BOOL LaunchDeviceManager(HWND hWndParent)
{
HMODULE hDll;
PDEVMGREXEC DevMgrExec;
BOOL Ret;
HMODULE hDll;
PDEVMGREXEC DevMgrExec;
BOOL Ret;
hDll = LoadLibrary(_TEXT("devmgr.dll"));
if(!hDll)
return FALSE;
DevMgrExec = (PDEVMGREXEC)GetProcAddress(hDll, "DeviceManager_ExecuteW");
if(!DevMgrExec)
{
hDll = LoadLibrary(_TEXT("devmgr.dll"));
if(!hDll)
return FALSE;
DevMgrExec = (PDEVMGREXEC)GetProcAddress(hDll, "DeviceManager_ExecuteW");
if(!DevMgrExec)
{
FreeLibrary(hDll);
return FALSE;
}
/* run the Device Manager */
Ret = DevMgrExec(hWndParent, hApplet, NULL /* ??? */, SW_SHOW);
FreeLibrary(hDll);
return FALSE;
}
/* run the Device Manager */
Ret = DevMgrExec(hWndParent, hApplet, NULL /* ??? */, SW_SHOW);
FreeLibrary(hDll);
return Ret;
return Ret;
}
/* Property page dialog callback */
INT_PTR CALLBACK
HardwarePageProc(
HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
)
HardwarePageProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
switch(uMsg)
{
case WM_INITDIALOG:
break;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDC_HARDWARE_DEVICE_MANAGER:
if(!LaunchDeviceManager(hwndDlg))
{
/* FIXME */
}
break;
}
break;
}
return FALSE;
UNREFERENCED_PARAMETER(lParam);
switch(uMsg)
{
case WM_INITDIALOG:
break;
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case IDC_HARDWARE_DEVICE_MANAGER:
{
if(!LaunchDeviceManager(hwndDlg))
{
/* FIXME */
}
return TRUE;
}
case IDC_HARDWARE_PROFILE:
{
DialogBox(hApplet,
MAKEINTRESOURCE(IDD_HARDWAREPROFILES),
hwndDlg,
(DLGPROC)HardProfDlgProc);
return TRUE;
}
}
}
break;
}
return FALSE;
}

View file

@ -11,10 +11,10 @@
INT_PTR CALLBACK
LicenceDialogProc(HWND hDlg,
UINT message,
WPARAM wParam,
LPARAM lParam)
LicenceDlgProc(HWND hDlg,
UINT message,
WPARAM wParam,
LPARAM lParam)
{
HRSRC hResInfo;
HGLOBAL hResMem;

View file

@ -6,6 +6,7 @@
#include <tchar.h>
#include <lm.h>
#include <cpl.h>
#include <shellapi.h> //shellexecute
#include "resource.h"
#define NUM_APPLETS (1)
@ -31,10 +32,12 @@ INT_PTR CALLBACK HardwarePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
/* dialogs */
INT_PTR CALLBACK UserProfileDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK HardProfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK StartRecDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK LicenceDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK LicenceDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
typedef struct _PAGEFILE
{

View file

@ -5,8 +5,11 @@
#define IDI_CPLSYSTEM 50
#define IDI_DEVMGR 51
#define IDC_ICON1 52
#define IDB_ROSBMP 53
#define IDI_COMPNAME 52
#define IDI_HARDPROF 53
#define IDI_USERPROF 54
#define IDB_ROSBMP 55
#define IDS_CPLSYSTEMNAME 60
#define IDS_CPLSYSTEMDESCRIPTION 61
@ -92,11 +95,49 @@
#define IDC_CURRENT 914
/* startup and recovery */
#define IDD_STARTUPRECOVERY 1000
#define IDC_STRECOSCOMBO 1001
#define IDC_STRECLIST 1002
#define IDC_STRRECLISTEDIT 1003
#define IDC_STRRECLISTUPDWN 1004
#define IDC_STRRECREC 1005
#define IDC_STRRECRECEDIT 1006
#define IDC_STRRECRECUPDWN 1007
#define IDC_STRRECEDIT 1008
#define IDC_STRRECWRITEEVENT 1009
#define IDC_STRRECSENDALERT 1010
#define IDC_STRRECRESTART 1011
#define IDC_STRRECDEBUGCOMBO 1012
#define IDC_STRRECDUMPFILE 1013
#define IDC_STRRECOVERWRITE 1014
/* hardware profiles */
#define IDD_HARDWAREPROFILES 1100
#define IDC_HRDPROFLSTBOX 1102
#define IDC_HRDPROFUP 1103
#define IDC_HRDPROFDWN 1104
#define IDC_HRDPROFPROP 1105
#define IDC_HRDPROFCOPY 1106
#define IDC_HRDPROFRENAME 1107
#define IDC_HRDPROFDEL 1108
#define IDC_HRDPROFWAIT 1109
#define IDC_HRDPROFSELECT 1110
#define IDC_HRDPROFEDIT 1111
#define IDC_HRDPROFUPDWN 1112
/* rename profile */
#define IDD_RENAMEPROFILE 1200
#define IDC_RENPROFEDITFROM 1201
#define IDC_RENPROFEDITTO 1202
/* licence */
#define IDD_LICENCE 1000
#define IDC_LICENCEEDIT 1001
#define RC_LICENSE 1002
#define RTDATA 1003
#define IDD_LICENCE 1500
#define IDC_LICENCEEDIT 1501
#define RC_LICENSE 1502
#define RTDATA 1503
#endif /* __CPL_RESOURCE_H */

View file

@ -0,0 +1,42 @@
/*
* PROJECT: ReactOS System Control Panel Applet
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/cpl/sysdm/startrec.c
* PURPOSE: Computer settings for startup and recovery
* COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
*
*/
#include "precomp.h"
/* Property page dialog callback */
INT_PTR CALLBACK
StartRecDlgProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
UNREFERENCED_PARAMETER(wParam);
UNREFERENCED_PARAMETER(hwndDlg);
switch(uMsg)
{
case WM_INITDIALOG:
{
MessageBox(hwndDlg, _T("Dialog not yet implemented!"), NULL, 0);
}
break;
case WM_COMMAND:
{
if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL))
{
EndDialog(hwndDlg,
LOWORD(wParam));
return TRUE;
}
}
break;
}
return FALSE;
}

View file

@ -22,8 +22,10 @@
<file>computer.c</file>
<file>environment.c</file>
<file>general.c</file>
<file>hardprof.c</file>
<file>hardware.c</file>
<file>licence.c</file>
<file>startrec.c</file>
<file>sysdm.c</file>
<file>userprofile.c</file>
<file>virtmem.c</file>

View file

@ -8,12 +8,16 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS System Applet\0"
#define REACTOS_STR_INTERNAL_NAME "sysdm\0"
#define REACTOS_STR_ORIGINAL_FILENAME "sysdm.cpl\0"
#include <reactos/version.rc>
//#include <reactos/version.rc>
IDI_CPLSYSTEM ICON "resources/applet.ico"
IDI_DEVMGR ICON "resources/devmgr.ico"
IDI_CPLSYSTEM ICON "resources/applet.ico"
IDB_ROSBMP BITMAP "resources/rosbitmap.bmp"
IDI_USERPROF ICON "resources/devmgr.ico"
IDI_COMPNAME ICON "resources/devmgr.ico"
IDI_HARDPROF ICON "resources/devmgr.ico"
IDI_DEVMGR ICON "resources/devmgr.ico"
IDB_ROSBMP BITMAP "resources/rosbitmap.bmp"
RC_LICENSE RTDATA "resources/gpl.txt"

View file

@ -12,10 +12,10 @@
/* Property page dialog callback */
INT_PTR CALLBACK
UserProfileDialogProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
UserProfileDlgProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
UNREFERENCED_PARAMETER(wParam);
@ -24,8 +24,9 @@ UserProfileDialogProc(HWND hwndDlg,
{
case WM_INITDIALOG:
{
MessageBox(hwndDlg, _T("Dialog not yet implemented!"), NULL, 0);
}
break; //GetUserName
break;
case WM_COMMAND:
{