diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-10 21:08:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-10 21:08:51 +0000 |
commit | 6029165c364f93a84ab7e98ef71d3a711b0f588c (patch) | |
tree | 6149aea694a35781a0d4ed074fbfc64fc09f8875 /plugins/FingerprintNG | |
parent | 6b1fbf4d40fa3b643aca4e9e82a132cc54f36b76 (diff) |
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
Diffstat (limited to 'plugins/FingerprintNG')
-rw-r--r-- | plugins/FingerprintNG/src/fingerprint.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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;
}
|