Archived
NIE.mp3
This commit is contained in:
1 parent
418611b39c
commit
4807ff3eaa
2 files changed
+5
-3
No files matched your search
@@ -120,7 +120,7 @@
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>uxtheme.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>uxtheme.lib;Winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
|
||||
@@ -93,7 +93,9 @@ void FolderBrowseDialog(HWND window) {
|
||||
}
|
||||
}
|
||||
void PlaySound() {
|
||||
|
||||
mciSendStringW(L"open D:\\grzan\\Music\\NIE.mp3 type mpegvideo alias mp3", NULL, 0, NULL);
|
||||
mciSendStringW(L"play mp3 wait", NULL, 0, NULL);
|
||||
mciSendStringW(L"close mp3", NULL, 0, NULL);
|
||||
}
|
||||
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
|
||||
switch (msg) {
|
||||
@@ -112,7 +114,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
|
||||
FolderBrowseDialog(hwnd);
|
||||
}
|
||||
else if ((HWND)lParam == filesListCtrl) {
|
||||
MessageBeep(MB_ICONERROR);
|
||||
PlaySound();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user