From 8291034d014dba722c106d0dfb0cebe302344983 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 12 Jul 2008 10:37:38 +0200 Subject: [PATCH] winhelp: Double clicking in the index list should open the page. --- programs/winhlp32/winhelp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c index 0ad32434ea7..d65a752c308 100644 --- a/programs/winhlp32/winhelp.c +++ b/programs/winhlp32/winhelp.c @@ -1593,6 +1593,15 @@ INT_PTR CALLBACK WINHELP_IndexDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM id->jump = FALSE; id->offset = 1; return TRUE; + case WM_COMMAND: + switch (HIWORD(wParam)) + { + case LBN_DBLCLK: + if (LOWORD(wParam) == IDC_INDEXLIST) + SendMessage(GetParent(hWnd), PSM_PRESSBUTTON, PSBTN_OK, 0); + break; + } + break; case WM_NOTIFY: switch (((NMHDR*)lParam)->code) { -- 2.11.4.GIT