diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-08-04 14:27:45 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-08-04 14:27:45 +0000 |
commit | 955c7abb5cc8be1cee7f97c54eab25e79fe0ae11 (patch) | |
tree | df5b4d545f37fec37ea5d58c3fc06c5718ade301 /src/core | |
parent | e0479eb78e0016c46bac506efe0a75c3def28a88 (diff) |
- sound notification for typing in SRMM module
git-svn-id: http://svn.miranda-ng.org/main/trunk@5576 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdmsg/src/msgs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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);
|