diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-05 06:38:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-05 06:38:41 +0000 |
commit | 789c9a80befc2e9d0ca02ce8e431f0023adad53c (patch) | |
tree | 59edb92c1e999f879c7bffba68895bc9009c6d18 /plugins/TabSRMM/src/msgdlgutils.cpp | |
parent | 0cefda1f073df2d9170a2b8721ac80f1371a046f (diff) |
use AVS notifications to refresh avatars
git-svn-id: http://svn.miranda-ng.org/main/trunk@10058 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index c208ff6b74..92dc7c6b31 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -530,6 +530,21 @@ void TSAPI HandleIconFeedback(TWindowData *dat, HICON iIcon) }
/////////////////////////////////////////////////////////////////////////////////////////
+// catches notifications from the AVS controls
+
+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);
+ }
+ }
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
// retrieve the visiblity of the avatar window, depending on the global setting
// and local mode
|