From d3cb2ceb360c8f0d4219929466b2a7330de08597 Mon Sep 17 00:00:00 2001
From: Scott Sumner <30118311+sasumner@users.noreply.github.com>
Date: Sat, 15 Feb 2020 21:33:20 -0500
Subject: [PATCH] Add external sound control capability for unsuccessful search
bell
Fix #7950, close #7951
---
PowerEditor/gcc/makefile | 4 ++--
PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 2 +-
PowerEditor/visual.net/notepadPlus.vcxproj | 8 ++++----
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/PowerEditor/gcc/makefile b/PowerEditor/gcc/makefile
index 0b8acd03..c8729bf3 100644
--- a/PowerEditor/gcc/makefile
+++ b/PowerEditor/gcc/makefile
@@ -250,7 +250,7 @@ CXX = $(CROSS_COMPILE)g++
CXXFLAGS = $(INCLUDESPECIAL) -DTIXML_USE_STL -DTIXMLA_USE_STL $(UNICODE) -std=c++17 -fpermissive
INCLUDES = $(patsubst %,-I%,$(DIRS)) -I./include
LDFLAGS = -Wl,--subsystem,windows -municode -mwindows
-LIBS = -lcomdlg32 -lcomctl32 -lgdi32 -lole32 -loleacc -lshell32 -lshlwapi -ldbghelp -lversion -lcrypt32 -lsensapi -lwintrust
+LIBS = -lcomdlg32 -lcomctl32 -lgdi32 -lole32 -loleacc -lshell32 -lshlwapi -ldbghelp -lversion -lcrypt32 -lsensapi -lwintrust -lwinmm
RC = $(CROSS_COMPILE)windres
@@ -286,4 +286,4 @@ clean:
-@$(RM) $(subst /,$(DIRSEP),$(DST_XMLCFG))
-@$(RM) $(subst /,$(DIRSEP),$(DEPS))
-.PHONY: all clean NotepadPP
+.PHONY: all clean NotepadPP
\ No newline at end of file
diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp
index f1086200..399537c5 100644
--- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp
+++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp
@@ -2587,7 +2587,7 @@ void FindReplaceDlg::setStatusbarMessage(const generic_string & msg, FindStatus
{
if (staus == FSNotFound)
{
- ::MessageBeep(0xFFFFFFFF);
+ ::PlaySound((LPCTSTR)SND_ALIAS_SYSTEMASTERISK, NULL, SND_ALIAS_ID | SND_ASYNC);
FLASHWINFO flashInfo;
flashInfo.cbSize = sizeof(FLASHWINFO);
diff --git a/PowerEditor/visual.net/notepadPlus.vcxproj b/PowerEditor/visual.net/notepadPlus.vcxproj
index 2cc3f357..80ff92bf 100755
--- a/PowerEditor/visual.net/notepadPlus.vcxproj
+++ b/PowerEditor/visual.net/notepadPlus.vcxproj
@@ -111,7 +111,7 @@
/fixed:no %(AdditionalOptions)
- comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;%(AdditionalDependencies)
+ comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;winmm.lib;%(AdditionalDependencies)
LinkVerboseLib
$(OutDir)notepad++.exe
1.0
@@ -149,7 +149,7 @@
/fixed:no %(AdditionalOptions)
- comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;%(AdditionalDependencies)
+ comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;winmm.lib;%(AdditionalDependencies)
LinkVerboseLib
$(OutDir)notepad++.exe
1.0
@@ -192,7 +192,7 @@
true
- comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;%(AdditionalDependencies)
+ comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;winmm.lib;%(AdditionalDependencies)
LinkVerboseLib
$(OutDir)notepad++.exe
1.0
@@ -244,7 +244,7 @@ copy ..\src\contextMenu.xml ..\bin\contextMenu.xml
true
- comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;%(AdditionalDependencies)
+ comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;winmm.lib;%(AdditionalDependencies)
LinkVerboseLib
$(OutDir)notepad++.exe
1.0