From 789c9a80befc2e9d0ca02ce8e431f0023adad53c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Aug 2014 06:38:41 +0000 Subject: use AVS notifications to refresh avatars git-svn-id: http://svn.miranda-ng.org/main/trunk@10058 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgdlgutils.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp') 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 @@ -529,6 +529,21 @@ void TSAPI HandleIconFeedback(TWindowData *dat, HICON iIcon) TabCtrl_SetItem(GetDlgItem(dat->pContainer->hwnd, IDC_MSGTABS), dat->iTabID, &item); } +///////////////////////////////////////////////////////////////////////////////////////// +// 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 -- cgit v1.2.3