mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
[MMSYS] Play default sound when the volume trackbar is released.
This works on Windows XP but it might not work on ReactOS because of unimplemented features of PlaySound().
This commit is contained in:
parent
5cf2a78473
commit
fcadedb306
1 changed files with 5 additions and 1 deletions
|
@ -472,7 +472,11 @@ VolumeDlgProc(HWND hwndDlg,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
if (((LPNMHDR)lParam)->code == (UINT)PSN_APPLY)
|
if (((LPNMHDR)lParam)->code == (UINT)NM_RELEASEDCAPTURE)
|
||||||
|
{
|
||||||
|
PlaySound((LPCTSTR)SND_ALIAS_SYSTEMDEFAULT, NULL, SND_ALIAS_ID | SND_ASYNC);
|
||||||
|
}
|
||||||
|
else if (((LPNMHDR)lParam)->code == (UINT)PSN_APPLY)
|
||||||
{
|
{
|
||||||
SaveData(hwndDlg);
|
SaveData(hwndDlg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue