diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-06 23:12:21 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-06 23:12:21 +0300 |
commit | 97d55ca3bede2281dc5b615fb9755195963aa83b (patch) | |
tree | 217c39008a698b24d7487a07b46db78b2ab4cac6 /plugins | |
parent | 2edf7b43622a8f29a0bfaf578c30127f933fe2c9 (diff) |
forgotten code for processing toolbar button events
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Scriver/src/chat/window.cpp | 6 | ||||
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Scriver/src/chat/window.cpp b/plugins/Scriver/src/chat/window.cpp index 81e1b92c12..ce1168ceb6 100644 --- a/plugins/Scriver/src/chat/window.cpp +++ b/plugins/Scriver/src/chat/window.cpp @@ -1529,6 +1529,12 @@ LABEL_SHOWWINDOW: if (!lParam && Clist_MenuProcessCommand(LOWORD(wParam), MPCF_CONTACTMENU, si->hContact))
break;
+ if (HIWORD(wParam) == BN_CLICKED)
+ if (LOWORD(wParam) >= MIN_CBUTTONID && LOWORD(wParam) <= MAX_CBUTTONID) {
+ Srmm_ClickToolbarIcon(si->hContact, LOWORD(wParam), GetDlgItem(hwndDlg, LOWORD(wParam)), 0);
+ break;
+ }
+
switch (LOWORD(wParam)) {
case IDC_CHAT_LIST:
if (HIWORD(wParam) == LBN_DBLCLK) {
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 0d5ba8e5ad..f6efee312a 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -1516,6 +1516,12 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (!lParam && Clist_MenuProcessCommand(LOWORD(wParam), MPCF_CONTACTMENU, dat->hContact))
break;
+ if (HIWORD(wParam) == BN_CLICKED)
+ if (LOWORD(wParam) >= MIN_CBUTTONID && LOWORD(wParam) <= MAX_CBUTTONID) {
+ Srmm_ClickToolbarIcon(dat->hContact, LOWORD(wParam), GetDlgItem(hwndDlg, LOWORD(wParam)), 0);
+ break;
+ }
+
switch (LOWORD(wParam)) {
case IDC_SENDALL:
int result;
|