diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-04 20:19:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-04 20:19:21 +0000 |
commit | 8a4d920ac00055a4ae15bafcce0e696abea9d6b1 (patch) | |
tree | c377fcfbd90de3a2178d93779828cbad75b44867 /plugins/TabSRMM/src/msgs.cpp | |
parent | 97f4d1524fde91f4c4a66f2d1e6d135f74c2bd1a (diff) |
- AvatarChanged finally destroyed;
- info panel's size calculation moved to WM_SIZE handler;
- many drawing glitches fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@10056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index a53fb2baca..9225b1d489 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -370,42 +370,6 @@ int SplitmsgShutdown(void) return 0; } -int AvatarChanged(WPARAM wParam, LPARAM lParam) -{ - if (wParam == 0) { // protocol picture has changed... - M.BroadcastMessage(DM_PROTOAVATARCHANGED, wParam, lParam); - return 0; - } - - HWND hwnd = M.FindWindow(wParam); - if (hwnd == NULL) - return 0; - - TWindowData *dat = (TWindowData*)GetWindowLongPtr(hwnd, GWLP_USERDATA); - if (dat == NULL) - return 0; - - avatarCacheEntry *ace = (avatarCacheEntry *)lParam; - 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 MyAvatarChanged(WPARAM wParam, LPARAM lParam) { if (wParam == 0 || IsBadReadPtr((void*)wParam, 4)) |