mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- More dialogs implementation
svn path=/trunk/; revision=38789
This commit is contained in:
parent
1b524afb98
commit
deb282d9e1
22 changed files with 133 additions and 1 deletions
|
@ -487,6 +487,35 @@ ProbeListPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
static INT_PTR CALLBACK
|
||||
SelectWayPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (uMsg)
|
||||
{
|
||||
case WM_NOTIFY:
|
||||
{
|
||||
LPNMHDR lpnm = (LPNMHDR)lParam;
|
||||
|
||||
switch (lpnm->code)
|
||||
{
|
||||
case PSN_SETACTIVE:
|
||||
{
|
||||
PropSheet_SetWizButtons(GetParent(hwndDlg), PSWIZB_NEXT | PSWIZB_BACK);
|
||||
SendDlgItemMessage(hwndDlg, IDC_AUTOINSTALL, BM_SETCHECK, 1, 1);
|
||||
}
|
||||
break;
|
||||
|
||||
case PSN_WIZNEXT:
|
||||
{
|
||||
if (SendDlgItemMessage(hwndDlg, IDC_AUTOINSTALL, BM_GETCHECK, 0, 0) == BST_CHECKED)
|
||||
SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_PROGRESSPAGE);
|
||||
else
|
||||
SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_HWTYPESPAGE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -529,10 +558,70 @@ DevStatusPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
static INT_PTR CALLBACK
|
||||
HdTypesPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (uMsg)
|
||||
{
|
||||
case WM_NOTIFY:
|
||||
{
|
||||
LPNMHDR lpnm = (LPNMHDR)lParam;
|
||||
|
||||
switch (lpnm->code)
|
||||
{
|
||||
case PSN_SETACTIVE:
|
||||
{
|
||||
PropSheet_SetWizButtons(GetParent(hwndDlg), PSWIZB_BACK);
|
||||
}
|
||||
break;
|
||||
|
||||
case PSN_WIZBACK:
|
||||
{
|
||||
SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_SELECTWAYPAGE);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static INT_PTR CALLBACK
|
||||
ProgressPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (uMsg)
|
||||
{
|
||||
case WM_NOTIFY:
|
||||
{
|
||||
LPNMHDR lpnm = (LPNMHDR)lParam;
|
||||
|
||||
switch (lpnm->code)
|
||||
{
|
||||
case PSN_SETACTIVE:
|
||||
{
|
||||
PropSheet_SetWizButtons(GetParent(hwndDlg), PSWIZB_BACK);
|
||||
}
|
||||
break;
|
||||
|
||||
case PSN_WIZBACK:
|
||||
{
|
||||
SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_SELECTWAYPAGE);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static VOID
|
||||
HardwareWizardInit(HWND hwnd)
|
||||
{
|
||||
HPROPSHEETPAGE ahpsp[8];
|
||||
HPROPSHEETPAGE ahpsp[10];
|
||||
PROPSHEETPAGE psp = {0};
|
||||
PROPSHEETHEADER psh;
|
||||
UINT nPages = 0;
|
||||
|
@ -599,6 +688,28 @@ HardwareWizardInit(HWND hwnd)
|
|||
psp.pszTemplate = MAKEINTRESOURCE(IDD_HWSTATUSPAGE);
|
||||
ahpsp[nPages++] = CreatePropertySheetPage(&psp);
|
||||
|
||||
/* Create hardware types page */
|
||||
psp.dwSize = sizeof(PROPSHEETPAGE);
|
||||
psp.dwFlags = PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
|
||||
psp.pszHeaderTitle = MAKEINTRESOURCE(IDS_HDTYPESTITLE);
|
||||
psp.pszHeaderSubTitle = NULL;
|
||||
psp.hInstance = hApplet;
|
||||
psp.lParam = 0;
|
||||
psp.pfnDlgProc = HdTypesPageDlgProc;
|
||||
psp.pszTemplate = MAKEINTRESOURCE(IDD_HWTYPESPAGE);
|
||||
ahpsp[nPages++] = CreatePropertySheetPage(&psp);
|
||||
|
||||
/* Create progress page */
|
||||
psp.dwSize = sizeof(PROPSHEETPAGE);
|
||||
psp.dwFlags = PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
|
||||
psp.pszHeaderTitle = MAKEINTRESOURCE(IDS_SEARCHTITLE);
|
||||
psp.pszHeaderSubTitle = NULL;
|
||||
psp.hInstance = hApplet;
|
||||
psp.lParam = 0;
|
||||
psp.pfnDlgProc = ProgressPageDlgProc;
|
||||
psp.pszTemplate = MAKEINTRESOURCE(IDD_PROGRESSPAGE);
|
||||
ahpsp[nPages++] = CreatePropertySheetPage(&psp);
|
||||
|
||||
/* Create finish page */
|
||||
psp.dwSize = sizeof(PROPSHEETPAGE);
|
||||
psp.dwFlags = PSP_DEFAULT | PSP_HIDEHEADER;
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -148,4 +148,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "Následující hardware již je nainstalován na tomto počítači"
|
||||
IDS_ADDNEWDEVICE "Přidat nové hardwarové zařízení"
|
||||
IDS_SELECTWAYTITLE "Průvodce vám může pomoci nainstalovat jiný hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "Folgende Hardware ist bereits auf Ihrem Computer installiert"
|
||||
IDS_ADDNEWDEVICE "Ein neues Gerät hinzufügen"
|
||||
IDS_SELECTWAYTITLE "Der Assistent kann Sie bei der Installation anderer Hardware unterstützen"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "El siguiente hardware ya está instalado en su equipo"
|
||||
IDS_ADDNEWDEVICE "Añadir un nuevo dispositivo hardware"
|
||||
IDS_SELECTWAYTITLE "El asistente puede ayudarle a instalar otro hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -144,4 +144,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "Følgende maskinvare har blitt installert på din datamaskin"
|
||||
IDS_ADDNEWDEVICE "Legg til en ny maskinvare enhet"
|
||||
IDS_SELECTWAYTITLE "Veiviseren kan hjelpe deg å installere andre maskinvare"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -148,4 +148,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "Poniższe urzšdzenia sš już zainstalowane na tym komputerze"
|
||||
IDS_ADDNEWDEVICE "Dodaj nowe urzšdzenie sprzętowe"
|
||||
IDS_SELECTWAYTITLE "Kreator może pomóc Tobie zainstalować inne urzšdzenie"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "На этом компьютере уже установлено следующее оборудование"
|
||||
IDS_ADDNEWDEVICE "Добавление нового устройства"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -148,4 +148,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -143,4 +143,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -151,4 +151,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -149,4 +149,5 @@ BEGIN
|
|||
IDS_PROBELISTTITLE "The following hardware is already installed on your computer"
|
||||
IDS_ADDNEWDEVICE "Add a new hardware device"
|
||||
IDS_SELECTWAYTITLE "The wizard can help you install other hardware"
|
||||
IDS_HDTYPESTITLE "From the list below, select the type of hardware you are installing"
|
||||
END
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#define IDS_SEARCHTEXT 1020
|
||||
#define IDS_SEARCHTITLE 1025
|
||||
#define IDS_SELECTWAYTITLE 1027
|
||||
#define IDS_HDTYPESTITLE 1061
|
||||
#define IDS_ADDNEWDEVICE 1081
|
||||
#define IDS_ISCONNECTED 1113
|
||||
|
||||
|
|
Loading…
Reference in a new issue