From c3a49bd95dce1276b4b02e0c236146f2184e31cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 14 Jun 2014 17:31:19 +0000 Subject: Facebook, Omegle: adapt for new MS_MSG_SETSTATUSTEXT git-svn-id: http://svn.miranda-ng.org/main/trunk@9480 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/communication.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'protocols/Omegle') diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp index d10f335b29..c82ae24cab 100644 --- a/protocols/Omegle/src/communication.cpp +++ b/protocols/Omegle/src/communication.cpp @@ -575,7 +575,15 @@ bool Omegle_client::events( ) { // Stranger is typing, not supported by chat module yet SkinPlaySound( "StrangerTyp" ); - CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)parent->GetChatHandle(), (LPARAM)TranslateT("Stranger is typing.")); + + + StatusTextData st = { 0 }; + st.cbSize = sizeof(st); + // st.hIcon = Skin_GetIconByHandle(GetIconHandle("typing_on")); // TODO: typing icon + + mir_sntprintf(st.tszText, SIZEOF(st.tszText), TranslateT("%s is typing."), TranslateT("Stranger")); + + CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)parent->GetChatHandle(), (LPARAM)&st); } if ( resp.data.find( "[\"stoppedTyping\"]" ) != std::string::npos @@ -583,7 +591,14 @@ bool Omegle_client::events( ) { // Stranger stopped typing, not supported by chat module yet SkinPlaySound( "StrangerTypStop" ); - CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)parent->GetChatHandle(), (LPARAM)TranslateT("Stranger stopped typing.")); + + StatusTextData st = { 0 }; + st.cbSize = sizeof(st); + // st.hIcon = Skin_GetIconByHandle(GetIconHandle("typing_off")); // TODO: typing icon + + mir_sntprintf(st.tszText, SIZEOF(st.tszText), TranslateT("%s stopped typing."), TranslateT("Stranger")); + + CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)parent->GetChatHandle(), (LPARAM)&st); } pos = 0; -- cgit v1.2.3