[SNDVOL32] Disable the balance trackbar for mono channels.

CORE-15743
This commit is contained in:
Eric Kohl 2019-02-11 21:16:32 +01:00
parent 008344fd09
commit 45f0d7413c

View file

@ -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);