[PATCH 8/8] [WinHelp]: double clicking in the index list should open the page
Eric Pouech
eric.pouech at orange.fr
Sat Jul 12 03:37:38 CDT 2008
A+
---
programs/winhlp32/winhelp.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c
index 11497f9..a5c68cb 100644
--- a/programs/winhlp32/winhelp.c
+++ b/programs/winhlp32/winhelp.c
@@ -1594,6 +1594,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)
{
More information about the wine-patches
mailing list