From: "Hao Peng" Subject: [PATCH] winecfg: Double click in dlls list to edit item's overides. (try 3) Message-Id: Date: Thu, 5 Mar 2015 12:00:49 +0800 Add a feature to winecfg. User can double click in dlls list to edit overides of selected item. superseded patch 108935.
Add a feature to winecfg. User can double click in dlls list to edit overides of selected item.

superseded patch 108935.



diff --git a/programs/winecfg/libraries.c b/programs/winecfg/libraries.c index a9889e5..c4f055f 100644 --- a/programs/winecfg/libraries.c +++ b/programs/winecfg/libraries.c @@ -643,6 +643,19 @@ LibrariesDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) else set_controls_from_selection(hDlg); break; + case CBN_DBLCLK: + if (LOWORD(wParam) == IDC_DLLS_LIST) + { + int index; + POINT p; + if (GetCursorPos(&p) && ScreenToClient((HWND)lParam, &p)) + { + index = SendDlgItemMessageW(hDlg, IDC_DLLS_LIST, LB_ITEMFROMPOINT, 0, MAKELPARAM(p.x, p.y)); + if (!HIWORD(index)) + on_edit_click(hDlg); + } + } + break; } break; }