From ac577d016e763053b35393611441bf8cade5d550 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 24 Jul 2014 17:01:43 +0000 Subject: tabSRMM has to set the sub's contact manually to display correct avatar git-svn-id: http://svn.miranda-ng.org/main/trunk@9932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/utils.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src/utils.cpp') diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp index 255347395c..ec6609ee52 100644 --- a/plugins/TabSRMM/src/utils.cpp +++ b/plugins/TabSRMM/src/utils.cpp @@ -1077,9 +1077,17 @@ HMODULE Utils::loadSystemLibrary(const wchar_t* szFilename) return _h; } -/** - * implementation of the CWarning class - */ +///////////////////////////////////////////////////////////////////////////////////////// +// setting avatar's contact + +void Utils::setAvatarContact(HWND hWnd, MCONTACT hContact) +{ + MCONTACT hSub = db_mc_getSrmmSub(hContact); + SendMessage(hWnd, AVATAR_SETCONTACT, 0, (hSub) ? hSub : hContact); +} + +///////////////////////////////////////////////////////////////////////////////////////// +// implementation of the CWarning class /** IMPORTANT note to translators for translation of the warning dialogs: * -- cgit v1.2.3