summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-05 06:57:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-05 06:57:30 +0000
commitdc21afddde315a2adeaeb4d630e244229e9cb72f (patch)
tree3bb19e0c7ca188993af53b60c194ea8365bc7dd7 /plugins
parent789c9a80befc2e9d0ca02ce8e431f0023adad53c (diff)
unneeded message handler removed and converted into a function
git-svn-id: http://svn.miranda-ng.org/main/trunk@10059 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp8
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp12
-rw-r--r--plugins/TabSRMM/src/msgs.h1
3 files changed, 8 insertions, 13 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 691c89e7e3..b2660e4df5 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -3093,14 +3093,6 @@ quote_from_last:
SendMessage(hwndDlg, DM_REMAKELOG, 0, 0);
break;
- case DM_PROTOAVATARCHANGED:
- dat->ace = Utils::loadAvatarFromAVS(dat->hContact);
-
- ShowPicture(dat, TRUE);
- if (dat->Panel->isActive())
- SendMessage(hwndDlg, WM_SIZE, 0, 0);
- return 0;
-
case DM_MYAVATARCHANGED:
{
const char *szProto = dat->cache->getActiveProto();
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index 92dc7c6b31..7300b48d64 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -537,10 +537,14 @@ void TSAPI ProcessAvatarChange(HWND hwnd, LPARAM lParam)
if (((LPNMHDR)lParam)->code == NM_AVATAR_CHANGED) {
HWND hwndDlg = GetParent(hwnd);
TWindowData *dat = (TWindowData*)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
- if (dat) {
- GetAvatarVisibility(hwndDlg, dat);
- SendMessage(hwndDlg, WM_SIZE, 0, 1);
- }
+ if (!dat)
+ return;
+
+ dat->ace = Utils::loadAvatarFromAVS(dat->hContact);
+
+ ShowPicture(dat, TRUE);
+ if (dat->Panel->isActive())
+ SendMessage(hwndDlg, WM_SIZE, 0, 0);
}
}
diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h
index cba8d7e694..b83f4a1a49 100644
--- a/plugins/TabSRMM/src/msgs.h
+++ b/plugins/TabSRMM/src/msgs.h
@@ -571,7 +571,6 @@ struct TNewWindowData
#define DM_DELAYEDSCROLL (TM_USER+78)
#define DM_REPLAYQUEUE (TM_USER+79)
#define DM_REFRESHTABINDEX (TM_USER+83)
-#define DM_PROTOAVATARCHANGED (TM_USER+84)
#define DM_SMILEYOPTIONSCHANGED (TM_USER+85)
#define DM_MYAVATARCHANGED (TM_USER+86)
#define DM_PRINTCLIENT (TM_USER+87)