X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=netinstall%2Fnet.cc;h=eb01ca4256ea1a68a8797fe9d3fbddcf6c871268;hp=3891d3fc940acf0afb0c623c44911b6b3bcb4e21;hb=a5812bf2ff9a9cf40f4ff78dcb83f5b4c295bd18;hpb=ccce6217f84987dff10ed3d2b60b9f0f65d8f25a diff --git a/netinstall/net.cc b/netinstall/net.cc index 3891d3f..eb01ca4 100644 --- a/netinstall/net.cc +++ b/netinstall/net.cc @@ -11,6 +11,7 @@ * * Written by DJ Delorie * + * Sync'ed with cinstall 2001-10-16 */ /* The purpose of this file is to get the network configuration @@ -115,7 +116,6 @@ dialog_cmd (HWND h, int id, HWND hwndctl, UINT code) NEXT (0); break; } - return FALSE; } static BOOL CALLBACK @@ -125,6 +125,13 @@ dialog_proc (HWND h, UINT message, WPARAM wParam, LPARAM lParam) { case WM_INITDIALOG: load_dialog (h); + + // Check to see if any radio buttons are selected. If not, select a default. + if ((!SendMessage(GetDlgItem (h, IDC_NET_IE5), BM_GETCHECK, 0, 0) == BST_CHECKED) + && (!SendMessage(GetDlgItem (h, IDC_NET_PROXY), BM_GETCHECK, 0, 0) == BST_CHECKED)) + { + SendMessage(GetDlgItem (h, IDC_NET_DIRECT), BM_CLICK, 0, 0); + } return FALSE; case WM_COMMAND: return HANDLE_WM_COMMAND (h, wParam, lParam, dialog_cmd); @@ -137,6 +144,7 @@ do_net (HINSTANCE h) { int rv = 0; + net_method = IDC_NET_DIRECT; rv = DialogBox (h, MAKEINTRESOURCE (IDD_NET), 0, dialog_proc); if (rv == -1) fatal (IDS_DIALOG_FAILED);