diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-24 13:58:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-24 13:58:18 +0300 |
commit | 055ca90f5d22a5211150ae8158dcec7fe1befb11 (patch) | |
tree | 0635783527009b8f9646a12cb530d2f472f6ff30 /src/core | |
parent | 4a67cbcb142409ccafc57a64186591e7976853ac (diff) |
- merge of WndProc_Nicklist functions;
- Chat_HoverMouse became the internal function ans is not exported anymore
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdmsg/src/chat_window.cpp | 55 |
1 files changed, 1 insertions, 54 deletions
diff --git a/src/core/stdmsg/src/chat_window.cpp b/src/core/stdmsg/src/chat_window.cpp index bb1065bf7f..96bef14272 100644 --- a/src/core/stdmsg/src/chat_window.cpp +++ b/src/core/stdmsg/src/chat_window.cpp @@ -986,31 +986,6 @@ LRESULT CChatRoomDlg::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam) LRESULT CChatRoomDlg::WndProc_Nicklist(UINT msg, WPARAM wParam, LPARAM lParam) { switch (msg) { - case WM_ERASEBKGND: - { - HDC dc = (HDC)wParam; - if (dc == nullptr) - return 0; - - int index = m_nickList.SendMsg(LB_GETTOPINDEX, 0, 0); - if (index == LB_ERR || m_si->nUsersInNicklist <= 0) - return 0; - - int height = m_nickList.SendMsg(LB_GETITEMHEIGHT, 0, 0); - if (height == LB_ERR) - return 0; - - RECT rc = {}; - GetClientRect(m_nickList.GetHwnd(), &rc); - - int items = m_si->nUsersInNicklist - index; - if (rc.bottom - rc.top > items * height) { - rc.top = items * height; - FillRect(dc, &rc, pci->hListBkgBrush); - } - } - return 1; - case WM_KEYDOWN: if (wParam == 0x57 && GetKeyState(VK_CONTROL) & 0x8000) { // ctrl-w (close window) CloseTab(); @@ -1018,30 +993,6 @@ LRESULT CChatRoomDlg::WndProc_Nicklist(UINT msg, WPARAM wParam, LPARAM lParam) } break; - case WM_RBUTTONDOWN: - m_nickList.SendMsg(WM_LBUTTONDOWN, wParam, lParam); - break; - - case WM_RBUTTONUP: - m_nickList.SendMsg(WM_LBUTTONUP, wParam, lParam); - break; - - case WM_MEASUREITEM: - { - MEASUREITEMSTRUCT *mis = (MEASUREITEMSTRUCT *)lParam; - if (mis->CtlType == ODT_MENU) - return Menu_MeasureItem(lParam); - } - return FALSE; - - case WM_DRAWITEM: - { - DRAWITEMSTRUCT *dis = (DRAWITEMSTRUCT *)lParam; - if (dis->CtlType == ODT_MENU) - return Menu_DrawItem(lParam); - } - return FALSE; - case WM_CONTEXTMENU: TVHITTESTINFO hti; { @@ -1085,13 +1036,9 @@ LRESULT CChatRoomDlg::WndProc_Nicklist(UINT msg, WPARAM wParam, LPARAM lParam) } } break; - - case WM_MOUSEMOVE: - Chat_HoverMouse(m_si, m_nickList.GetHwnd(), lParam, ServiceExists("mToolTip/HideTip")); - break; } - return 0; + return CSuper::WndProc_Nicklist(msg, wParam, lParam); } ///////////////////////////////////////////////////////////////////////////////////////// |