mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 10:53:15 +00:00
- add and enable partition creation and file system selection dialog
svn path=/trunk/; revision=37316
This commit is contained in:
parent
bcf160f2b8
commit
27341b700f
|
@ -64,6 +64,22 @@ BEGIN
|
||||||
LTEXT "Click Next to start the installation process.", IDC_STATIC, 10, 180 ,277, 20
|
LTEXT "Click Next to start the installation process.", IDC_STATIC, 10, 180 ,277, 20
|
||||||
END
|
END
|
||||||
|
|
||||||
|
IDD_PARTITION DIALOGEX DISCARDABLE 0, 0, 145, 90
|
||||||
|
STYLE WS_VISIBLE|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME
|
||||||
|
CAPTION "Create Partition"
|
||||||
|
FONT 8, "MS Shell Dlg"
|
||||||
|
BEGIN
|
||||||
|
CONTROL "",IDC_UPDOWN1,"msctls_updown32", WS_VISIBLE,104,22,9,13
|
||||||
|
CONTROL "Create and format partition",IDC_STATIC,"Button",BS_GROUPBOX,7,5,129,57
|
||||||
|
LTEXT "Size:",IDC_STATIC, 13,24,27,9
|
||||||
|
EDITTEXT IDC_PARTSIZE,52,23,53,13, WS_VISIBLE|WS_TABSTOP
|
||||||
|
LTEXT "GB",IDC_UNIT, 117,24,14,9
|
||||||
|
LTEXT "Filesystem:",IDC_STATIC,13,46,35,9
|
||||||
|
CONTROL "",IDC_FSTYPE,"ComboBox",WS_VISIBLE|WS_TABSTOP|CBS_DROPDOWNLIST,52,42,79,50
|
||||||
|
PUSHBUTTON "&OK",IDOK,35,68,47,15, WS_VISIBLE|WS_TABSTOP
|
||||||
|
PUSHBUTTON "&Cancel",IDCANCEL,87,68,47,15, WS_VISIBLE|WS_TABSTOP
|
||||||
|
END
|
||||||
|
|
||||||
IDD_BOOTOPTIONS DIALOGEX DISCARDABLE 0, 0, 305, 105
|
IDD_BOOTOPTIONS DIALOGEX DISCARDABLE 0, 0, 305, 105
|
||||||
STYLE WS_VISIBLE|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME
|
STYLE WS_VISIBLE|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME
|
||||||
CAPTION "Advanced Partition Settings"
|
CAPTION "Advanced Partition Settings"
|
||||||
|
|
|
@ -544,7 +544,30 @@ MoreOptDlgProc(HWND hwndDlg,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static INT_PTR CALLBACK
|
||||||
|
PartitionDlgProc(HWND hwndDlg,
|
||||||
|
UINT uMsg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
switch (uMsg)
|
||||||
|
{
|
||||||
|
case WM_INITDIALOG:
|
||||||
|
break;
|
||||||
|
case WM_COMMAND:
|
||||||
|
switch(LOWORD(wParam))
|
||||||
|
{
|
||||||
|
case IDOK:
|
||||||
|
EndDialog(hwndDlg, IDOK);
|
||||||
|
break;
|
||||||
|
case IDCANCEL:
|
||||||
|
EndDialog(hwndDlg, IDCANCEL);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
static INT_PTR CALLBACK
|
static INT_PTR CALLBACK
|
||||||
DriveDlgProc(HWND hwndDlg,
|
DriveDlgProc(HWND hwndDlg,
|
||||||
UINT uMsg,
|
UINT uMsg,
|
||||||
|
@ -613,6 +636,11 @@ DriveDlgProc(HWND hwndDlg,
|
||||||
case IDC_PARTMOREOPTS:
|
case IDC_PARTMOREOPTS:
|
||||||
DialogBox(hInstance,MAKEINTRESOURCE(IDD_BOOTOPTIONS),hwndDlg,MoreOptDlgProc);
|
DialogBox(hInstance,MAKEINTRESOURCE(IDD_BOOTOPTIONS),hwndDlg,MoreOptDlgProc);
|
||||||
break;
|
break;
|
||||||
|
case IDC_PARTCREATE:
|
||||||
|
DialogBox(hInstance,MAKEINTRESOURCE(IDD_PARTITION),hwndDlg,PartitionDlgProc);
|
||||||
|
break;
|
||||||
|
case IDC_PARTDELETE:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,11 @@
|
||||||
#define IDC_ACTION 2040
|
#define IDC_ACTION 2040
|
||||||
#define IDC_PARTMOREOPTS 2041
|
#define IDC_PARTMOREOPTS 2041
|
||||||
#define IDD_BOOTOPTIONS 2042
|
#define IDD_BOOTOPTIONS 2042
|
||||||
|
#define IDD_PARTITION 2043
|
||||||
|
#define IDC_UPDOWN1 2044
|
||||||
|
#define IDC_PARTSIZE 2045
|
||||||
|
#define IDC_UNIT 2046
|
||||||
|
#define IDC_FSTYPE 2047
|
||||||
|
|
||||||
|
|
||||||
#define IDI_MAIN 3000
|
#define IDI_MAIN 3000
|
||||||
|
|
Loading…
Reference in a new issue