From 6712ce9307350ef5c04f184b0cb80cfe75af77c5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 Mar 2019 22:38:02 +0300 Subject: Srmm_ModifyIcon now changes only tooltip and/or icon, Srmm_SetIconFlags controls flags --- plugins/FingerprintNG/src/fingerprint.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'plugins/FingerprintNG') diff --git a/plugins/FingerprintNG/src/fingerprint.cpp b/plugins/FingerprintNG/src/fingerprint.cpp index cc5d58d3f2..8ab34436fe 100644 --- a/plugins/FingerprintNG/src/fingerprint.cpp +++ b/plugins/FingerprintNG/src/fingerprint.cpp @@ -147,18 +147,10 @@ void RegisterIcons() static void SetSrmmIcon(MCONTACT hContact, LPTSTR ptszMirver) { - StatusIconData sid = {}; - sid.szModule = MODULENAME; - sid.dwId = 1; - sid.flags = MBF_UNICODE; - sid.szTooltip.w = ptszMirver; - if (mir_wstrlen(ptszMirver)) - sid.hIcon = (HICON)ServiceGetClientIconW((WPARAM)ptszMirver, TRUE); + Srmm_ModifyIcon(hContact, MODULENAME, 1, (HICON)ServiceGetClientIconW((WPARAM)ptszMirver, TRUE), ptszMirver); else - sid.flags |= MBF_HIDDEN; - - Srmm_ModifyIcon(hContact, &sid); + Srmm_SetIconFlags(hContact, MODULENAME, 1, MBF_HIDDEN); } int __fastcall ApplyFingerprintImage(MCONTACT hContact, LPTSTR szMirVer) -- cgit v1.2.3