CheckDlgButton (hwnd, IDC1_BLINKCUR, cfg.blink_cur); CheckDlgButton (hwnd, IDC1_BEEP, cfg.beep);
CheckDlgButton (hwnd, IDC1_SCROLLKEY, cfg.scroll_on_key);
static int CALLBACK KeyboardProc (HWND hwnd, UINT msg,				    WPARAM wParam, LPARAM lParam) {    switch (msg) {      case WM_INITDIALOG:	CheckRadioButton (hwnd, IDC1_DEL008, IDC1_DEL127,			  cfg.bksp_is_delete ? IDC1_DEL127 : IDC1_DEL008);	CheckRadioButton (hwnd, IDC1_HOMETILDE, IDC1_HOMERXVT,			  cfg.rxvt_homeend ? IDC1_HOMERXVT : IDC1_HOMETILDE);	CheckRadioButton (hwnd, IDC1_FUNCTILDE, IDC1_FUNCLINUX,			  cfg.linux_funkeys ? IDC1_FUNCLINUX : IDC1_FUNCTILDE);	CheckRadioButton (hwnd, IDC1_CURNORMAL, IDC1_CURAPPLIC,			  cfg.app_cursor ? IDC1_CURAPPLIC : IDC1_CURNORMAL);	CheckRadioButton (hwnd, IDC1_KPNORMAL, IDC1_KPNH,			  cfg.nethack_keypad ? IDC1_KPNH :			  cfg.app_keypad ? IDC1_KPAPPLIC : IDC1_KPNORMAL);	CheckDlgButton (hwnd, IDC1_ALTF4, cfg.alt_f4);	CheckDlgButton (hwnd, IDC1_ALTSPACE, cfg.alt_space);	CheckDlgButton (hwnd, IDC1_LDISCTERM, cfg.ldisc_term);	CheckDlgButton (hwnd, IDC1_BLINKCUR, cfg.blink_cur);        CheckDlgButton (hwnd, IDC1_BEEP, cfg.beep);	break;      case WM_COMMAND:	if (HIWORD(wParam) == BN_CLICKED ||	    HIWORD(wParam) == BN_DOUBLECLICKED)	    switch (LOWORD(wParam)) {	      case IDC1_DEL008:	      case IDC1_DEL127:		cfg.bksp_is_delete = IsDlgButtonChecked (hwnd, IDC1_DEL127);		break;	      case IDC1_HOMETILDE:	      case IDC1_HOMERXVT:		cfg.rxvt_homeend = IsDlgButtonChecked (hwnd, IDC1_HOMERXVT);		break;	      case IDC1_FUNCTILDE:	      case IDC1_FUNCLINUX:		cfg.linux_funkeys = IsDlgButtonChecked (hwnd, IDC1_FUNCLINUX);		break;	      case IDC1_KPNORMAL:	      case IDC1_KPAPPLIC:		cfg.app_keypad = IsDlgButtonChecked (hwnd, IDC1_KPAPPLIC);		cfg.nethack_keypad = FALSE;		break;	      case IDC1_KPNH:		cfg.app_keypad = FALSE;		cfg.nethack_keypad = TRUE;		break;	      case IDC1_CURNORMAL:	      case IDC1_CURAPPLIC:		cfg.app_cursor = IsDlgButtonChecked (hwnd, IDC1_CURAPPLIC);		break;	      case IDC1_ALTF4:		if (HIWORD(wParam) == BN_CLICKED ||		    HIWORD(wParam) == BN_DOUBLECLICKED)		    cfg.alt_f4 = IsDlgButtonChecked (hwnd, IDC1_ALTF4);		break;	      case IDC1_ALTSPACE:		if (HIWORD(wParam) == BN_CLICKED ||		    HIWORD(wParam) == BN_DOUBLECLICKED)		    cfg.alt_space = IsDlgButtonChecked (hwnd, IDC1_ALTSPACE);		break;	      case IDC1_LDISCTERM:		if (HIWORD(wParam) == BN_CLICKED ||		    HIWORD(wParam) == BN_DOUBLECLICKED)		    cfg.ldisc_term = IsDlgButtonChecked (hwnd, IDC1_LDISCTERM);		break;	      case IDC1_BLINKCUR:		if (HIWORD(wParam) == BN_CLICKED ||		    HIWORD(wParam) == BN_DOUBLECLICKED)		    cfg.blink_cur = IsDlgButtonChecked (hwnd, IDC1_BLINKCUR);              case IDC1_BEEP:                if (HIWORD(wParam) == BN_CLICKED ||                    HIWORD(wParam) == BN_DOUBLECLICKED)                    cfg.beep = IsDlgButtonChecked (hwnd, IDC1_BEEP);		break;	    }    }    return GeneralPanelProc (hwnd, msg, wParam, lParam);}