- disable USB runtime options if USB support is disabled
This commit is contained in:
parent
d86c22fa20
commit
1890507b7d
@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
// $Id: win32dialog.cc,v 1.32 2005-11-30 18:06:24 vruppert Exp $
|
// $Id: win32dialog.cc,v 1.33 2005-12-26 18:10:21 vruppert Exp $
|
||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -490,10 +490,21 @@ static BOOL CALLBACK RTUSBdevDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM
|
|||||||
|
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
if (SIM->get_param_string(BXP_USB1_PORT1)->get_enabled()) {
|
||||||
SetDlgItemText(hDlg, IDUSBDEV1, SIM->get_param_string(BXP_USB1_PORT1)->getptr());
|
SetDlgItemText(hDlg, IDUSBDEV1, SIM->get_param_string(BXP_USB1_PORT1)->getptr());
|
||||||
SetDlgItemText(hDlg, IDUSBOPT1, SIM->get_param_string(BXP_USB1_OPTION1)->getptr());
|
SetDlgItemText(hDlg, IDUSBOPT1, SIM->get_param_string(BXP_USB1_OPTION1)->getptr());
|
||||||
SetDlgItemText(hDlg, IDUSBDEV2, SIM->get_param_string(BXP_USB1_PORT2)->getptr());
|
SetDlgItemText(hDlg, IDUSBDEV2, SIM->get_param_string(BXP_USB1_PORT2)->getptr());
|
||||||
SetDlgItemText(hDlg, IDUSBOPT2, SIM->get_param_string(BXP_USB1_OPTION2)->getptr());
|
SetDlgItemText(hDlg, IDUSBOPT2, SIM->get_param_string(BXP_USB1_OPTION2)->getptr());
|
||||||
|
} else {
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDUSBLBL1), FALSE);
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDUSBLBL2), FALSE);
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDUSBLBL3), FALSE);
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDUSBLBL4), FALSE);
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDUSBDEV1), FALSE);
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDUSBOPT1), FALSE);
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDUSBDEV2), FALSE);
|
||||||
|
EnableWindow(GetDlgItem(hDlg, IDUSBOPT2), FALSE);
|
||||||
|
}
|
||||||
changed = FALSE;
|
changed = FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user