diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-05 06:57:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-05 06:57:30 +0000 |
commit | dc21afddde315a2adeaeb4d630e244229e9cb72f (patch) | |
tree | 3bb19e0c7ca188993af53b60c194ea8365bc7dd7 /plugins/TabSRMM/src/msgdlgutils.cpp | |
parent | 789c9a80befc2e9d0ca02ce8e431f0023adad53c (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/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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);
}
}
|