1 /*
2 *
3 * PROJECT: ReactOS Multimedia Control Panel
4 * FILE: dll/cpl/mmsys/voice.c
5 * PURPOSE: ReactOS Multimedia Control Panel
6 * PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com>
7 * Johannes Anderwald <janderwald@reactos.com>
8 * Dmitry Chapyshev <dmitry@reactos.org>
9 */
10
11 #include "mmsys.h"
12
13 /* Voice property page dialog callback */
14 INT_PTR CALLBACK
VoiceDlgProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)15 VoiceDlgProc(HWND hwndDlg,
16 UINT uMsg,
17 WPARAM wParam,
18 LPARAM lParam)
19 {
20 UNREFERENCED_PARAMETER(lParam);
21 UNREFERENCED_PARAMETER(wParam);
22 switch (uMsg)
23 {
24 case WM_INITDIALOG:
25 {
26 UINT NumWavOut;
27
28 NumWavOut = waveOutGetNumDevs();
29 if (!NumWavOut)
30 {
31 EnableWindow(GetDlgItem(hwndDlg, IDC_DEVICE_VOICE_LIST), FALSE);
32 EnableWindow(GetDlgItem(hwndDlg, IDC_DEVICE_VOICE_REC_LIST), FALSE);
33 EnableWindow(GetDlgItem(hwndDlg, IDC_VOLUME4_BTN), FALSE);
34 EnableWindow(GetDlgItem(hwndDlg, IDC_ADV4_BTN), FALSE);
35 EnableWindow(GetDlgItem(hwndDlg, IDC_VOLUME5_BTN), FALSE);
36 EnableWindow(GetDlgItem(hwndDlg, IDC_ADV5_BTN), FALSE);
37 EnableWindow(GetDlgItem(hwndDlg, IDC_TEST_HARDWARE), FALSE);
38 }
39 }
40 break;
41 }
42
43 return FALSE;
44 }
45