mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +00:00
[SNDVOL32] Disable the balance trackbar for mono channels.
CORE-15743
This commit is contained in:
parent
008344fd09
commit
45f0d7413c
1 changed files with 27 additions and 12 deletions
|
@ -562,6 +562,20 @@ EnumConnectionsCallback(
|
|||
}
|
||||
}
|
||||
|
||||
if (Line->cChannels == 1)
|
||||
{
|
||||
/* Disable the balance trackbar for mono channels */
|
||||
wID = (PrefContext->Count + 1) * IDC_LINE_SLIDER_HORZ;
|
||||
|
||||
/* get dialog control */
|
||||
hDlgCtrl = GetDlgItem(PrefContext->MixerWindow->hWnd, wID);
|
||||
if (hDlgCtrl != NULL)
|
||||
{
|
||||
EnableWindow(hDlgCtrl, FALSE);
|
||||
}
|
||||
}
|
||||
else if (Line->cChannels == 2)
|
||||
{
|
||||
/* Set the balance trackbar */
|
||||
wID = (PrefContext->Count + 1) * IDC_LINE_SLIDER_HORZ;
|
||||
|
||||
|
@ -582,6 +596,7 @@ EnumConnectionsCallback(
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* free controls */
|
||||
HeapFree(GetProcessHeap(), 0, Control);
|
||||
|
|
Loading…
Reference in a new issue