xref: /reactos/dll/cpl/mmsys/voice.c (revision c2c66aff)
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
15 VoiceDlgProc(HWND hwndDlg,
16              UINT uMsg,
17              WPARAM wParam,
18              LPARAM lParam)
19 {
20     UNREFERENCED_PARAMETER(lParam);
21     UNREFERENCED_PARAMETER(wParam);
22     UNREFERENCED_PARAMETER(hwndDlg);
23     switch(uMsg)
24     {
25         case WM_INITDIALOG:
26         {
27             UINT NumWavOut;
28 
29             NumWavOut = waveOutGetNumDevs();
30             if (!NumWavOut)
31             {
32                 EnableWindow(GetDlgItem(hwndDlg, IDC_DEVICE_VOICE_LIST),     FALSE);
33                 EnableWindow(GetDlgItem(hwndDlg, IDC_DEVICE_VOICE_REC_LIST), FALSE);
34                 EnableWindow(GetDlgItem(hwndDlg, IDC_VOLUME4_BTN),           FALSE);
35                 EnableWindow(GetDlgItem(hwndDlg, IDC_ADV4_BTN),              FALSE);
36                 EnableWindow(GetDlgItem(hwndDlg, IDC_VOLUME5_BTN),           FALSE);
37                 EnableWindow(GetDlgItem(hwndDlg, IDC_ADV5_BTN),              FALSE);
38                 EnableWindow(GetDlgItem(hwndDlg, IDC_TEST_HARDWARE),         FALSE);
39             }
40         }
41         break;
42     }
43 
44     return FALSE;
45 }
46