diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-15 14:43:49 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-15 14:43:49 +0300 |
commit | 6e6bc248a3ce5ffbcd3196431789413a178e3bf6 (patch) | |
tree | 2bdeac209e6e0052347913db0f1731216d05e777 /plugins/VoiceService/src/VoiceCall.cpp | |
parent | 104ef6721d5a3b4c324ec4f2103a6404ca59837f (diff) |
fixes #3732 (VoiceService: добавить открытие диалога вызова при нажатии на всплывающее окно)
Diffstat (limited to 'plugins/VoiceService/src/VoiceCall.cpp')
-rw-r--r-- | plugins/VoiceService/src/VoiceCall.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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()); +} |