summaryrefslogtreecommitdiff
path: root/protocols/Dummy/src/dummy_options.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-10-25 11:41:14 +0000
committerRobert Pösel <robyer@seznam.cz>2015-10-25 11:41:14 +0000
commit55dc3a99af44bb97931bdeca9122d0d62f7b183f (patch)
tree9b685ccc08282402d343bfcd131d6a77f8b038fa /protocols/Dummy/src/dummy_options.cpp
parent7d5f7b0fac50a1c6972c48664797f33f180243ee (diff)
Dummy: Support for sending messages (with option to enable it)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15614 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Dummy/src/dummy_options.cpp')
-rw-r--r--protocols/Dummy/src/dummy_options.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/Dummy/src/dummy_options.cpp b/protocols/Dummy/src/dummy_options.cpp
index aa6cb6d798..7f86602d08 100644
--- a/protocols/Dummy/src/dummy_options.cpp
+++ b/protocols/Dummy/src/dummy_options.cpp
@@ -56,6 +56,9 @@ INT_PTR CALLBACK DummyAccountProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
int templateId = ppro->getTemplateId();
SendDlgItemMessage(hwndDlg, IDC_TEMPLATE, CB_SETCURSEL, templateId, 0);
+ boolean allowSending = ppro->getByte(DUMMY_KEY_ALLOW_SENDING, 0);
+ CheckDlgButton(hwndDlg, IDC_ALLOW_SENDING, allowSending ? BST_CHECKED : BST_UNCHECKED);
+
onTemplateSelected(hwndDlg, ppro, templateId);
}
return TRUE;
@@ -75,6 +78,8 @@ INT_PTR CALLBACK DummyAccountProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
}
+ default:
+ SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
}
break;
@@ -93,6 +98,8 @@ INT_PTR CALLBACK DummyAccountProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
GetDlgItemTextA(hwndDlg, IDC_ID_SETTING, str, _countof(str));
ppro->setString(DUMMY_ID_SETTING, str);
}
+
+ ppro->setByte(DUMMY_KEY_ALLOW_SENDING, IsDlgButtonChecked(hwndDlg, IDC_ALLOW_SENDING));
}
break;