From 955c7abb5cc8be1cee7f97c54eab25e79fe0ae11 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sun, 4 Aug 2013 14:27:45 +0000 Subject: - sound notification for typing in SRMM module git-svn-id: http://svn.miranda-ng.org/main/trunk@5576 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdmsg/src/msgs.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp index abf9b88cf9..c1da6bffcc 100644 --- a/src/core/stdmsg/src/msgs.cpp +++ b/src/core/stdmsg/src/msgs.cpp @@ -171,6 +171,8 @@ static int TypingMessage(WPARAM wParam, LPARAM lParam) if (hwnd = WindowList_Find(g_dat.hMessageWindowList, (HANDLE) wParam)) { SendMessage(hwnd, DM_TYPING, 0, lParam); foundWin = 1; + if (!foundWin) + SkinPlaySound((lParam) ? "TNStart" : "TNStop"); } if (lParam && !foundWin && (g_dat.flags&SMF_SHOWTYPINGTRAY)) { TCHAR szTip[256]; @@ -431,6 +433,8 @@ int LoadSendRecvMessageModule(void) SkinAddNewSoundEx("AlertMsg", LPGEN("Instant messages"), LPGEN("Incoming (New Session)")); SkinAddNewSoundEx("SendMsg", LPGEN("Instant messages"), LPGEN("Outgoing")); SkinAddNewSoundEx("SendError", LPGEN("Instant messages"), LPGEN("Message send error")); + SkinAddNewSoundEx("TNStart", LPGEN("Instant messages"), LPGEN("Contact started typing")); + SkinAddNewSoundEx("TNStop", LPGEN("Instant messages"), LPGEN("Contact stopped typing")); hCurSplitNS = LoadCursor(NULL, IDC_SIZENS); hCurSplitWE = LoadCursor(NULL, IDC_SIZEWE); -- cgit v1.2.3