diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-11 16:47:12 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-11 16:47:12 +0000 |
commit | 52fe3f7be13509bd336c5efa28b8310a23211034 (patch) | |
tree | 70e0948e92b71cd09367545f9655dc343c5cc862 /plugins/SecureIM/src | |
parent | fa837bfbc2a705947b14f1ce8ba36d996bb11104 (diff) |
- Srmm_ModifyIcon helper applied instead of CallService(MS_MSG_MODIFYICON)
- various fixes related to SRMM icons;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4426 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src')
-rw-r--r-- | plugins/SecureIM/src/crypt_icons.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/plugins/SecureIM/src/crypt_icons.cpp b/plugins/SecureIM/src/crypt_icons.cpp index 5907fb5b62..9131583586 100644 --- a/plugins/SecureIM/src/crypt_icons.cpp +++ b/plugins/SecureIM/src/crypt_icons.cpp @@ -75,18 +75,16 @@ void ShowStatusIcon(HANDLE hContact, int mode) ExtraIcon_Clear(g_hCLIcon, hMC);
}
- if (ServiceExists(MS_MSG_MODIFYICON)) { // обновить иконки в srmm
- StatusIconData sid = {sizeof(sid) };
- sid.szModule = (char*)MODULENAME;
- for (int i = MODE_NATIVE; i < MODE_CNT; i++) {
- sid.dwId = i;
- sid.flags = (mode & SECURED) ? 0 : MBF_DISABLED;
- if (mode == -1 || (mode & 0x0f) != i || isChatRoom(hContact))
- sid.flags |= MBF_HIDDEN; // отключаем все ненужные иконки
- CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid);
- if (hMC )
- CallService(MS_MSG_MODIFYICON, (WPARAM)hMC, (LPARAM)&sid);
- }
+ StatusIconData sid = {sizeof(sid) };
+ sid.szModule = (char*)MODULENAME;
+ for (int i = MODE_NATIVE; i < MODE_CNT; i++) {
+ sid.dwId = i;
+ sid.flags = (mode & SECURED) ? 0 : MBF_DISABLED;
+ if (mode == -1 || (mode & 0x0f) != i || isChatRoom(hContact))
+ sid.flags |= MBF_HIDDEN; // отключаем все ненужные иконки
+ Srmm_ModifyIcon(hContact, &sid);
+ if (hMC)
+ Srmm_ModifyIcon(hMC, &sid);
}
}
|