From 33953cc6a0fab6a91af293c6838f8a46dd7922da Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Feb 2014 14:42:51 +0000 Subject: HCONTACT, part 3 git-svn-id: http://svn.miranda-ng.org/main/trunk@8081 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/sendlater.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/TabSRMM/src/sendlater.cpp') diff --git a/plugins/TabSRMM/src/sendlater.cpp b/plugins/TabSRMM/src/sendlater.cpp index 81631416d7..a7e2748315 100644 --- a/plugins/TabSRMM/src/sendlater.cpp +++ b/plugins/TabSRMM/src/sendlater.cpp @@ -491,7 +491,7 @@ void CSendLater::addContact(const HCONTACT hContact) return; if (m_sendLaterContactList.getCount() == 0) { - m_sendLaterContactList.insert(hContact); + m_sendLaterContactList.insert((HANDLE)hContact); m_last_sendlater_processed = 0; // force processing at next tick return; } @@ -500,10 +500,10 @@ void CSendLater::addContact(const HCONTACT hContact) * this list should not have duplicate entries */ - if (m_sendLaterContactList.find(hContact)) + if (m_sendLaterContactList.find((HANDLE)hContact)) return; - m_sendLaterContactList.insert(hContact); + m_sendLaterContactList.insert((HANDLE)hContact); m_last_sendlater_processed = 0; // force processing at next tick } @@ -565,7 +565,7 @@ LRESULT CSendLater::qMgrAddFilter(const HCONTACT hContact, const TCHAR* tszNick) lr = ::SendMessage(m_hwndFilter, CB_FINDSTRING, 0, reinterpret_cast(tszNick)); if (lr == CB_ERR) { lr = ::SendMessage(m_hwndFilter, CB_INSERTSTRING, -1, reinterpret_cast(tszNick)); - ::SendMessage(m_hwndFilter, CB_SETITEMDATA, lr, reinterpret_cast(hContact)); + ::SendMessage(m_hwndFilter, CB_SETITEMDATA, lr, (LPARAM)hContact); if (hContact == m_hFilter) m_sel = lr; } @@ -773,7 +773,7 @@ INT_PTR CALLBACK CSendLater::DlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM TranslateDialogDefault(hwnd); m_hwndList = ::GetDlgItem(m_hwndDlg, IDC_QMGR_LIST); m_hwndFilter = ::GetDlgItem(m_hwndDlg, IDC_QMGR_FILTER); - m_hFilter = reinterpret_cast(db_get_dw(0, SRMSGMOD_T, "qmgrFilterContact", 0)); + m_hFilter = (HCONTACT)(db_get_dw(0, SRMSGMOD_T, "qmgrFilterContact", 0)); ::SetWindowLongPtr(m_hwndList, GWL_STYLE, ::GetWindowLongPtr(m_hwndList, GWL_STYLE) | LVS_SHOWSELALWAYS); ::SendMessage(m_hwndList, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES|LVS_EX_LABELTIP|LVS_EX_DOUBLEBUFFER); @@ -832,7 +832,7 @@ INT_PTR CALLBACK CSendLater::DlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (HIWORD(wParam) == CBN_SELCHANGE && reinterpret_cast(lParam) == m_hwndFilter) { LRESULT lr = ::SendMessage(m_hwndFilter, CB_GETCURSEL, 0, 0); if (lr != CB_ERR) { - m_hFilter = reinterpret_cast(::SendMessage(m_hwndFilter, CB_GETITEMDATA, lr, 0)); + m_hFilter = (HCONTACT)::SendMessage(m_hwndFilter, CB_GETITEMDATA, lr, 0); qMgrFillList(); } break; @@ -923,7 +923,7 @@ INT_PTR CALLBACK CSendLater::DlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case WM_NCDESTROY: m_hwndDlg = 0; - db_set_dw(0, SRMSGMOD_T, "qmgrFilterContact", reinterpret_cast(m_hFilter)); + db_set_dw(0, SRMSGMOD_T, "qmgrFilterContact", DWORD(m_hFilter)); break; } return FALSE; -- cgit v1.2.3