| 390 | HWND uug=0; |
| 391 | |
| 392 | static void UpdateSD(HWND hwndDlg) |
| 393 | { |
| 394 | int t; |
| 395 | |
| 396 | CheckDlgButton(hwndDlg,CHECK_SOUND_ENABLED,soundo?BST_CHECKED:BST_UNCHECKED); |
| 397 | // The option formerly flagged by SO_SECONDARY can no longer be disabled. |
| 398 | // CheckDlgButton(hwndDlg,123,(soundoptions&SO_SECONDARY)?BST_CHECKED:BST_UNCHECKED); |
| 399 | CheckDlgButton(hwndDlg,CHECK_SOUND_GLOBAL_FOCUS,(soundoptions&SO_GFOCUS)?BST_CHECKED:BST_UNCHECKED); |
| 400 | CheckDlgButton(hwndDlg,CHECK_SOUND_MUTEFA,(soundoptions&SO_MUTEFA)?BST_CHECKED:BST_UNCHECKED); |
| 401 | CheckDlgButton(hwndDlg,CHECK_SOUND_MUTETURBO,(muteTurbo)?BST_CHECKED:BST_UNCHECKED); |
| 402 | CheckDlgButton(hwndDlg,CHECK_SOUND_SWAPDUTY,(swapDuty)?BST_CHECKED:BST_UNCHECKED); |
| 403 | // The option formerly flagged by SO_OLDUP can no longer be enabled. |
| 404 | // CheckDlgButton(hwndDlg,131,(soundoptions&SO_OLDUP)?BST_CHECKED:BST_UNCHECKED); |
| 405 | SendDlgItemMessage(hwndDlg,COMBO_SOUND_QUALITY,CB_SETCURSEL,soundquality,(LPARAM)(LPSTR)0); |
| 406 | t=0; |
| 407 | if(soundrate==22050) t=1; |
| 408 | else if(soundrate==44100) t=2; |
| 409 | else if(soundrate==48000) t=3; |
| 410 | else if(soundrate==96000) t=4; |
| 411 | SendDlgItemMessage(hwndDlg,COMBO_SOUND_RATE,CB_SETCURSEL,t,(LPARAM)(LPSTR)0); |
| 412 | t=0; |
| 413 | if (soundoptions&SO_FORCE8BIT) t=1; |
| 414 | SendDlgItemMessage(hwndDlg,COMBO_SOUND_8BIT,CB_SETCURSEL,t,(LPARAM)(LPSTR)0); |
| 415 | |
| 416 | if (!soundo) |
| 417 | { |
| 418 | EnableWindow(GetDlgItem(hwndDlg,CHECK_SOUND_SWAPDUTY),FALSE); |
| 419 | EnableWindow(GetDlgItem(hwndDlg,CHECK_SOUND_MUTETURBO),FALSE); |
| 420 | EnableWindow(GetDlgItem(hwndDlg,CHECK_SOUND_MUTEFA),FALSE); |
| 421 | EnableWindow(GetDlgItem(hwndDlg,COMBO_SOUND_QUALITY),FALSE); |
| 422 | EnableWindow(GetDlgItem(hwndDlg,COMBO_SOUND_RATE),FALSE); |
| 423 | EnableWindow(GetDlgItem(hwndDlg,COMBO_SOUND_8BIT),FALSE); |
| 424 | EnableWindow(GetDlgItem(hwndDlg,CTL_LATENCY_TRACKBAR),FALSE); |
| 425 | EnableWindow(GetDlgItem(hwndDlg,CTL_VOLUME_TRACKBAR_TRIANGLE),FALSE); |
| 426 | EnableWindow(GetDlgItem(hwndDlg,CTL_VOLUME_TRACKBAR_SQUARE1),FALSE); |
| 427 | EnableWindow(GetDlgItem(hwndDlg,CTL_VOLUME_TRACKBAR_SQUARE2),FALSE); |
| 428 | EnableWindow(GetDlgItem(hwndDlg,CTL_VOLUME_TRACKBAR_NOISE),FALSE); |
| 429 | EnableWindow(GetDlgItem(hwndDlg,CTL_VOLUME_TRACKBAR_PCM),FALSE); |
| 430 | EnableWindow(GetDlgItem(hwndDlg,CTL_VOLUME_TRACKBAR),FALSE); |
| 431 | EnableWindow(GetDlgItem(hwndDlg,IDC_SOUND_RESTOREDEFAULTVOL),FALSE); |
| 432 | EnableWindow(GetDlgItem(hwndDlg,124),FALSE); |
| 433 | //Slider group boxes |
| 434 | EnableWindow(GetDlgItem(hwndDlg,125),FALSE); |
| 435 | EnableWindow(GetDlgItem(hwndDlg,131),FALSE); |
| 436 | EnableWindow(GetDlgItem(hwndDlg,132),FALSE); |
| 437 | EnableWindow(GetDlgItem(hwndDlg,133),FALSE); |
| 438 | EnableWindow(GetDlgItem(hwndDlg,134),FALSE); |
| 439 | EnableWindow(GetDlgItem(hwndDlg,135),FALSE); |
| 440 | //Static text boxes in volume group box |
| 441 | EnableWindow(GetDlgItem(hwndDlg,ID_SOUND_QUALITYNOTIFY),FALSE); |
| 442 | EnableWindow(GetDlgItem(hwndDlg,ID_SOUND_TRITOP),FALSE); |
| 443 | //Volume group box |
| 444 | EnableWindow(GetDlgItem(hwndDlg,IDC_VOLUMEGROUP),FALSE); |
| 445 | //Buffer group box |
| 446 | EnableWindow(GetDlgItem(hwndDlg,127),FALSE); |
| 447 | EnableWindow(GetDlgItem(hwndDlg,65459),FALSE); |
| 448 | EnableWindow(GetDlgItem(hwndDlg,65456),FALSE); |
| 449 | EnableWindow(GetDlgItem(hwndDlg,65458),FALSE); |
no test coverage detected