int ExtraIconGroup::ClistSetExtraIcon(MCONTACT hContact, HANDLE hImage) { if (hImage != INVALID_HANDLE_VALUE) m_setValidExtraIcon = true; return Clist_SetExtraIcon(hContact, m_slot, hImage); }
int ExtraIconGroup::ClistSetExtraIcon(HANDLE hContact, HANDLE hImage) { if (hImage != NULL && hImage != (HANDLE) -1) setValidExtraIcon = true; return Clist_SetExtraIcon(hContact, slot, hImage); }
int BaseExtraIcon::ClistSetExtraIcon(HANDLE hContact, HANDLE hImage) { ExtraIcon *tmp = extraIconsByHandle[id - 1]; if (tmp != this) return tmp->ClistSetExtraIcon(hContact, hImage); return Clist_SetExtraIcon(hContact, slot, hImage); }
void ExtraIcon::applyIcons() { if (!isEnabled()) return; for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) { // Clear to assert that it will be cleared Clist_SetExtraIcon(hContact, m_slot, INVALID_HANDLE_VALUE); applyIcon(hContact); } }
void ExtraIcon::applyIcons() { if (!isEnabled()) return; HANDLE hContact = (HANDLE) CallService(MS_DB_CONTACT_FINDFIRST, 0, 0); while (hContact != NULL) { // Clear to assert that it will be cleared Clist_SetExtraIcon(hContact, slot, INVALID_HANDLE_VALUE); applyIcon(hContact); hContact = (HANDLE) CallService(MS_DB_CONTACT_FINDNEXT, (WPARAM) hContact, 0); } }
static void RemoveExtraIcons(int slot) { for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) Clist_SetExtraIcon(hContact, slot, INVALID_HANDLE_VALUE); }