Added the GUI part for setting the edition mode flavor.

This commit is contained in:
Eric Pouech 2003-01-11 21:00:20 +00:00 committed by Alexandre Julliard
parent 61ca3acb28
commit 1880800603
7 changed files with 31 additions and 1 deletions

View File

@ -601,6 +601,19 @@ static BOOL WINAPI WCUSER_ConfigDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPAR
SetDlgItemInt(hDlg, IDC_CNF_WIN_HEIGHT, di->config.win_height, FALSE);
SendDlgItemMessage(hDlg, IDC_CNF_CLOSE_EXIT, BM_SETCHECK,
(di->config.exit_on_die) ? BST_CHECKED : BST_UNCHECKED, 0L);
{
static WCHAR s1[] = {'W','i','n','3','2',0};
static WCHAR s2[] = {'E','m','a','c','s',0};
SendDlgItemMessage(hDlg, IDC_CNF_EDITION_MODE, CB_ADDSTRING,
0, (LPARAM)s1);
SendDlgItemMessage(hDlg, IDC_CNF_EDITION_MODE, CB_ADDSTRING,
0, (LPARAM)s2);
SendDlgItemMessage(hDlg, IDC_CNF_EDITION_MODE, CB_SETCURSEL,
di->config.edition_mode, 0);
WINE_FIXME("edmo=%d\n", di->config.edition_mode);
}
break;
case WM_COMMAND:
di = (struct dialog_info*)GetWindowLong(hDlg, DWL_USER);
@ -637,7 +650,8 @@ static BOOL WINAPI WCUSER_ConfigDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPAR
di->config.win_height = y;
}
di->config.exit_on_die = IsDlgButtonChecked(hDlg, IDC_CNF_CLOSE_EXIT) ? 1 : 0;
di->config.edition_mode = SendDlgItemMessage(hDlg, IDC_CNF_EDITION_MODE, CB_GETCURSEL,
0, 0);
SetWindowLong(hDlg, DWL_MSGRESULT, PSNRET_NOERROR);
return TRUE;
default:

View File

@ -99,6 +99,9 @@ FONT 8, "Helv"
GROUPBOX "End of program", -1, 115, 11, 80, 42, BS_GROUPBOX
AUTOCHECKBOX "&Close console", IDC_CNF_CLOSE_EXIT, 119, 25, 75, 20, WS_TABSTOP
GROUPBOX "Edition", -1, 115, 55, 80, 42
COMBOBOX IDC_CNF_EDITION_MODE, 119, 69, 75, 20, CBS_DROPDOWNLIST|WS_VSCROLL|WS_TABSTOP
}
IDD_SAVE_SETTINGS DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 140, 60

View File

@ -99,6 +99,9 @@ FONT 8, "Helv"
GROUPBOX "End of program", -1, 115, 11, 80, 42, BS_GROUPBOX
AUTOCHECKBOX "&Close console", IDC_CNF_CLOSE_EXIT, 119, 25, 75, 20, WS_TABSTOP
GROUPBOX "Edition", -1, 115, 55, 80, 42
COMBOBOX IDC_CNF_EDITION_MODE, 119, 69, 75, 20, CBS_DROPDOWNLIST|WS_VSCROLL|WS_TABSTOP
}
IDD_SAVE_SETTINGS DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 140, 60

View File

@ -99,6 +99,9 @@ FONT 8, "Helv"
GROUPBOX "Fin du programme", -1, 115, 11, 80, 42, BS_GROUPBOX
AUTOCHECKBOX "&Fermer la console", IDC_CNF_CLOSE_EXIT, 119, 25, 75, 20, WS_TABSTOP
GROUPBOX "Edition", -1, 115, 55, 80, 42
COMBOBOX IDC_CNF_EDITION_MODE, 119, 69, 75, 20, CBS_DROPDOWNLIST|WS_VSCROLL|WS_TABSTOP
}
IDD_SAVE_SETTINGS DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 200, 60

View File

@ -100,6 +100,9 @@ FONT 8, "Helv"
GROUPBOX "Program vége", -1, 115, 11, 80, 42, BS_GROUPBOX
AUTOCHECKBOX "&Konsol bezárása", IDC_CNF_CLOSE_EXIT, 119, 25, 75, 20, WS_TABSTOP
GROUPBOX "Edition", -1, 115, 55, 80, 42
COMBOBOX IDC_CNF_EDITION_MODE, 119, 69, 75, 20, CBS_DROPDOWNLIST|WS_VSCROLL|WS_TABSTOP
}
IDD_SAVE_SETTINGS DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 140, 60

View File

@ -101,6 +101,9 @@ FONT 14, "Helv"
GROUPBOX "当程序退出后", -1, 115, 11, 80, 42, BS_GROUPBOX
AUTOCHECKBOX "关闭虚拟终端(&C", IDC_CNF_CLOSE_EXIT, 119, 25, 75, 20, WS_TABSTOP
GROUPBOX "Edition", -1, 115, 55, 80, 42
COMBOBOX IDC_CNF_EDITION_MODE, 119, 69, 75, 20, CBS_DROPDOWNLIST|WS_VSCROLL|WS_TABSTOP
}
IDD_SAVE_SETTINGS DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 140, 60

View File

@ -70,6 +70,7 @@
#define IDC_CNF_WIN_HEIGHT 0x0307
#define IDC_CNF_WIN_HEIGHT_UD 0x0308
#define IDC_CNF_CLOSE_EXIT 0x0309
#define IDC_CNF_EDITION_MODE 0x030a
#define IDC_SAV_SAVE 0x0401
#define IDC_SAV_SESSION 0x0402