From 6029165c364f93a84ab7e98ef71d3a711b0f588c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 10 Apr 2013 21:08:51 +0000 Subject: attempt to fix the most crazy pieces of status icons related code git-svn-id: http://svn.miranda-ng.org/main/trunk@4417 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FingerprintNG/src/fingerprint.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/FingerprintNG') diff --git a/plugins/FingerprintNG/src/fingerprint.cpp b/plugins/FingerprintNG/src/fingerprint.cpp index 893318071f..df1a7aca71 100644 --- a/plugins/FingerprintNG/src/fingerprint.cpp +++ b/plugins/FingerprintNG/src/fingerprint.cpp @@ -145,7 +145,6 @@ static void SetSrmmIcon(HANDLE hContact, LPTSTR ptszMirver) StatusIconData sid = { sizeof(sid) }; sid.szModule = MODULENAME; sid.dwId = 1; - sid.flags = MBF_OWNERSTATE; sid.szTooltip = LPGEN("Client icon"); if ( lstrlen(ptszMirver)) @@ -1163,7 +1162,7 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) if (db_get_b(NULL, MODULENAME, "StatusBarIcon", 1) && ServiceExists(MS_MSG_ADDICON)) { StatusIconData sid = { sizeof(sid) }; sid.szModule = MODULENAME; - sid.flags = MBF_OWNERSTATE | MBF_HIDDEN; + sid.flags = MBF_HIDDEN; sid.dwId = 1; CallService(MS_MSG_ADDICON, 0, (LPARAM)&sid); } @@ -1178,12 +1177,13 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) static int OnPreShutdown(WPARAM wParam, LPARAM lParam) { - if (ServiceExists(MS_MSG_REMOVEICON)) { - StatusIconData sid = { sizeof(sid) }; - sid.szModule = MODULENAME; - CallService(MS_MSG_REMOVEICON, 0, (LPARAM)&sid); - } - + if (ServiceExists(MS_MSG_REMOVEICON)) { + StatusIconData sid = { sizeof(sid) }; + sid.szModule = MODULENAME; + sid.dwId = 1; + CallService(MS_MSG_REMOVEICON, 0, (LPARAM)&sid); + } + return 0; } -- cgit v1.2.3