comparison src/gui_w32.c @ 30523:5ab992f09df8 v9.0.0597

patch 9.0.0597: cannot close a tab page with the middle mouse button Commit: https://github.com/vim/vim/commit/3bdef10dc1c836e5e5a6fdcc1c21155cbd80d798 Author: regomne <fallingsunz@gmail.com> Date: Mon Sep 26 20:48:32 2022 +0100 patch 9.0.0597: cannot close a tab page with the middle mouse button Problem: Cannot close a tab page with the middle mouse button. Solution: Support closing a tab page with the middle mouse button, like many other programs. (closes #10746)
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Sep 2022 22:00:04 +0200
parents 499c766d0c14
children 101f08b49ed3
comparison
equal deleted inserted replaced
30522:c2b2903782c8 30523:5ab992f09df8
8092 SetCursor(s_hCursor); 8092 SetCursor(s_hCursor);
8093 ReleaseCapture(); 8093 ReleaseCapture();
8094 } 8094 }
8095 break; 8095 break;
8096 } 8096 }
8097 case WM_MBUTTONUP:
8098 {
8099 TCHITTESTINFO htinfo;
8100
8101 htinfo.pt.x = GET_X_LPARAM(lParam);
8102 htinfo.pt.y = GET_Y_LPARAM(lParam);
8103 idx0 = TabCtrl_HitTest(hwnd, &htinfo);
8104 if (idx0 != -1)
8105 {
8106 idx0 += 1;
8107 send_tabline_menu_event(idx0, TABLINE_MENU_CLOSE);
8108 }
8109 break;
8110 }
8097 default: 8111 default:
8098 break; 8112 break;
8099 } 8113 }
8100 8114
8101 return CallWindowProc(s_tabline_wndproc, hwnd, uMsg, wParam, lParam); 8115 return CallWindowProc(s_tabline_wndproc, hwnd, uMsg, wParam, lParam);