From 6e6bc248a3ce5ffbcd3196431789413a178e3bf6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 15 Oct 2023 14:43:49 +0300 Subject: =?UTF-8?q?fixes=20#3732=20(VoiceService:=20=D0=B4=D0=BE=D0=B1?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D1=82=D1=8C=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B?= =?UTF-8?q?=D1=82=D0=B8=D0=B5=20=D0=B4=D0=B8=D0=B0=D0=BB=D0=BE=D0=B3=D0=B0?= =?UTF-8?q?=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=D0=B0=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BD=D0=B0=D0=B6=D0=B0=D1=82=D0=B8=D0=B8=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=B2=D1=81=D0=BF=D0=BB=D1=8B=D0=B2=D0=B0=D1=8E=D1=89=D0=B5?= =?UTF-8?q?=D0=B5=20=D0=BE=D0=BA=D0=BD=D0=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/VoiceService/src/VoiceCall.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'plugins/VoiceService/src/VoiceCall.cpp') diff --git a/plugins/VoiceService/src/VoiceCall.cpp b/plugins/VoiceService/src/VoiceCall.cpp index 272011b71c..69ac72df98 100644 --- a/plugins/VoiceService/src/VoiceCall.cpp +++ b/plugins/VoiceService/src/VoiceCall.cpp @@ -271,7 +271,7 @@ void VoiceCall::Notify(bool popup, bool sound, bool clist) return; if (popup) - ShowPopup(hContact, displayName, TranslateW(popupTexts[state])); + ShowPopup(hContact, displayName, TranslateW(popupTexts[state]), this); if (clist && state == VOICE_STATE_RINGING) { CLISTEVENT ce = {}; @@ -350,3 +350,15 @@ void VoiceCall::SendDTMF(wchar_t c) CallProtoService(module->name, PS_VOICE_SEND_DTMF, (WPARAM)id, (LPARAM)c); } + +///////////////////////////////////////////////////////////////////////////////////////// + +void ShowCallWindow(VoiceCall *call) +{ + if (calls.indexOf(call) == -1) + return; + + call->Show(); + SetActiveWindow(call->GetHwnd()); + SetForegroundWindow(call->GetHwnd()); +} -- cgit v1.2.3