int TwitterProto::OnPrebuildContactMenu(WPARAM wParam, LPARAM) { MCONTACT hContact = (MCONTACT) wParam; if (IsMyContact(hContact)) ShowContactMenus(true); return 0; }
int FacebookProto::OnPrebuildContactMenu(WPARAM wParam,LPARAM lParam) { HANDLE hContact = reinterpret_cast<HANDLE>(wParam); if(IsMyContact(hContact/*, true*/)) { bool hide = (DBGetContactSettingDword(hContact, m_szModuleName, FACEBOOK_KEY_DELETED, 0) || DBGetContactSettingDword(hContact, m_szModuleName, FACEBOOK_KEY_CONTACT_TYPE, 0) ); ShowContactMenus(true, hide); } return 0; }