summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-24 17:01:43 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-24 17:01:43 +0000
commitac577d016e763053b35393611441bf8cade5d550 (patch)
tree215284805854de6e7a777ac161bc7cf536214b1a /plugins/TabSRMM/src/utils.cpp
parenta8fd33c7efd6f25fb6127467ad6547bd8e9c995a (diff)
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
Diffstat (limited to 'plugins/TabSRMM/src/utils.cpp')
-rw-r--r--plugins/TabSRMM/src/utils.cpp14
1 files changed, 11 insertions, 3 deletions
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:
*