summaryrefslogtreecommitdiff
path: root/plugins/VoiceService/src/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-15 14:43:49 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-15 14:43:49 +0300
commit6e6bc248a3ce5ffbcd3196431789413a178e3bf6 (patch)
tree2bdeac209e6e0052347913db0f1731216d05e777 /plugins/VoiceService/src/options.cpp
parent104ef6721d5a3b4c324ec4f2103a6404ca59837f (diff)
fixes #3732 (VoiceService: добавить открытие диалога вызова при нажатии на всплывающее окно)
Diffstat (limited to 'plugins/VoiceService/src/options.cpp')
-rw-r--r--plugins/VoiceService/src/options.cpp22
1 files changed, 14 insertions, 8 deletions
diff --git a/plugins/VoiceService/src/options.cpp b/plugins/VoiceService/src/options.cpp
index f4613bdec8..729b6bfa24 100644
--- a/plugins/VoiceService/src/options.cpp
+++ b/plugins/VoiceService/src/options.cpp
@@ -43,10 +43,10 @@ static OptPageControl popupsControls[] = {
{ NULL, CONTROL_RADIO, IDC_DELAYPERMANENT, "PopupsDelayType", POPUP_DELAY_DEFAULT, POPUP_DELAY_PERMANENT },
{ &opts.popup_timeout, CONTROL_SPIN, IDC_DELAY, "PopupsTimeout", 10, IDC_DELAY_SPIN, (WORD)1, (WORD)255 },
{ &opts.popup_right_click_action, CONTROL_COMBO, IDC_RIGHT_ACTION, "PopupsRightClick", POPUP_ACTION_CLOSEPOPUP },
- { &opts.popup_left_click_action, CONTROL_COMBO, IDC_LEFT_ACTION, "PopupsLeftClick", POPUP_ACTION_CLOSEPOPUP },
+ { &opts.popup_left_click_action, CONTROL_COMBO, IDC_LEFT_ACTION, "PopupsLeftClick", POPUP_ACTION_OPENWINDOW },
- { &opts.opt_bImmDialog, CONTROL_CHECKBOX, IDC_IMMDIALOG, "PopupsRightClick", FALSE },
- { &opts.opt_bImmDialogFocus, CONTROL_CHECKBOX, IDC_IMMDIALOG_FOCUS, "PopupsLeftClick", FALSE }
+ { &opts.opt_bImmDialog, CONTROL_CHECKBOX, IDC_IMMDIALOG, "PopupsRightClick", FALSE },
+ { &opts.opt_bImmDialogFocus, CONTROL_CHECKBOX, IDC_IMMDIALOG_FOCUS, "PopupsLeftClick", FALSE },
};
static void PopupsEnableDisableCtrls(HWND hwndDlg)
@@ -81,13 +81,19 @@ static void PopupsEnableDisableCtrls(HWND hwndDlg)
static INT_PTR CALLBACK PopupsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
+ HWND hwndCombo;
+
switch (msg) {
case WM_INITDIALOG:
- SendDlgItemMessage(hwndDlg, IDC_RIGHT_ACTION, CB_ADDSTRING, 0, (LPARAM)TranslateT("Do nothing"));
- SendDlgItemMessage(hwndDlg, IDC_RIGHT_ACTION, CB_ADDSTRING, 0, (LPARAM)TranslateT("Close popup"));
-
- SendDlgItemMessage(hwndDlg, IDC_LEFT_ACTION, CB_ADDSTRING, 0, (LPARAM)TranslateT("Do nothing"));
- SendDlgItemMessage(hwndDlg, IDC_LEFT_ACTION, CB_ADDSTRING, 0, (LPARAM)TranslateT("Close popup"));
+ hwndCombo = GetDlgItem(hwndDlg, IDC_RIGHT_ACTION);
+ ComboBox_AddString(hwndCombo, TranslateT("Do nothing"));
+ ComboBox_AddString(hwndCombo, TranslateT("Close popup"));
+ ComboBox_AddString(hwndCombo, TranslateT("Open call window"));
+
+ hwndCombo = GetDlgItem(hwndDlg, IDC_LEFT_ACTION);
+ ComboBox_AddString(hwndCombo, TranslateT("Do nothing"));
+ ComboBox_AddString(hwndCombo, TranslateT("Close popup"));
+ ComboBox_AddString(hwndCombo, TranslateT("Open call window"));
// Needs to be called here in this case
{