summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index de04c3fe6f..9225b1d489 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -380,40 +380,6 @@ int MyAvatarChanged(WPARAM wParam, LPARAM lParam)
return 0;
}
-int AvatarChanged(WPARAM wParam, LPARAM lParam)
-{
- avatarCacheEntry *ace = (avatarCacheEntry *)lParam;
- HWND hwnd = M.FindWindow(wParam);
-
- if (wParam == 0) { // protocol picture has changed...
- M.BroadcastMessage(DM_PROTOAVATARCHANGED, wParam, lParam);
- return 0;
- }
- if (hwnd) {
- TWindowData *dat = (TWindowData*)GetWindowLongPtr(hwnd, GWLP_USERDATA);
- if (dat) {
- dat->ace = ace;
- if (dat->hTaskbarIcon)
- DestroyIcon(dat->hTaskbarIcon);
- dat->hTaskbarIcon = 0;
- DM_RecalcPictureSize(dat);
- if (!dat->bShowAvatar || !dat->bShowInfoAvatar)
- GetAvatarVisibility(hwnd, dat);
- if (dat->hwndPanelPic) {
- dat->panelWidth = -1; // force new size calculations (not for flash avatars)
- SendMessage(dat->hwnd, WM_SIZE, 0, 1);
- }
- dat->panelWidth = -1; // force new size calculations (not for flash avatars)
- RedrawWindow(dat->hwnd, NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ALLCHILDREN);
- SendMessage(dat->hwnd, WM_SIZE, 0, 1);
- ShowPicture(dat, TRUE);
- dat->dwFlagsEx |= MWF_EX_AVATARCHANGED;
- dat->pContainer->SideBar->updateSession(dat);
- }
- }
- return 0;
-}
-
int IcoLibIconsChanged(WPARAM wParam, LPARAM lParam)
{
LoadFromIconLib();