This commit is contained in:
mmacierzanka committed 2021-05-16 20:09:15 +02:00
1 parent 418611b39c
commit 4807ff3eaa
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@
<Link> <Link>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>uxtheme.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>uxtheme.lib;Winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link> </Link>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+4 -2
View File
@@ -93,7 +93,9 @@ void FolderBrowseDialog(HWND window) {
} }
} }
void PlaySound() { 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) { LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
switch (msg) { switch (msg) {
@@ -112,7 +114,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
FolderBrowseDialog(hwnd); FolderBrowseDialog(hwnd);
} }
else if ((HWND)lParam == filesListCtrl) { else if ((HWND)lParam == filesListCtrl) {
MessageBeep(MB_ICONERROR); PlaySound();
} }
break; break;
default: default: