Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 87 of file sndvol32.c.
Referenced by UpdatePrefDlgControls().
{ PPREFERENCES_CONTEXT PrefContext = (PPREFERENCES_CONTEXT)Context; UNREFERENCED_PARAMETER(Mixer); UNREFERENCED_PARAMETER(DisplayControls); switch (Line->dwComponentType) { case MIXERLINE_COMPONENTTYPE_DST_SPEAKERS: if (PrefContext->PlaybackID == (DWORD)-1) { PrefContext->PlaybackID = Line->dwLineID; if (PrefContext->SelectedLine == (DWORD)-1) { PrefContext->SelectedLine = Line->dwLineID; } } else goto AddToOthersLines; break; case MIXERLINE_COMPONENTTYPE_DST_WAVEIN: if (PrefContext->RecordingID == (DWORD)-1) { PrefContext->RecordingID = Line->dwLineID; if (PrefContext->SelectedLine == (DWORD)-1) { PrefContext->SelectedLine = Line->dwLineID; } } else goto AddToOthersLines; break; default: { LRESULT lres; HWND hwndCbOthers; if (PrefContext->SelectedLine == (DWORD)-1) { PrefContext->SelectedLine = Line->dwLineID; } AddToOthersLines: hwndCbOthers = GetDlgItem(PrefContext->hwndDlg, IDC_LINE); lres = SendMessage(hwndCbOthers, CB_ADDSTRING, 0, (LPARAM)Line->szName); if (lres != CB_ERR) { SendMessage(hwndCbOthers, CB_SETITEMDATA, (WPARAM)lres, Line->dwLineID); PrefContext->OtherLines++; } break; } } return TRUE; }