From 21b9cb0783acfc2d64c2f31e784599a35d4f988b Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Fri, 27 Jun 2008 21:29:07 +0200 Subject: [PATCH] winhelp: Let CtrlC do something useful thanks to richedit. --- programs/winhlp32/winhelp.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c index 8307f61a21b..effa0bdce12 100644 --- a/programs/winhlp32/winhelp.c +++ b/programs/winhlp32/winhelp.c @@ -864,7 +864,9 @@ static LRESULT CALLBACK WINHELP_MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, case MNID_FILE_EXIT: MACRO_Exit(); break; /* Menu EDIT */ - case MNID_EDIT_COPYDLG: MACRO_CopyDialog(); break; + case MNID_EDIT_COPYDLG: + SendMessage(GetDlgItem(hWnd, CTL_ID_TEXT), WM_COPY, 0, 0); + break; case MNID_EDIT_ANNOTATE:MACRO_Annotate(); break; /* Menu Bookmark */ @@ -936,6 +938,14 @@ static LRESULT CALLBACK WINHELP_MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, case WM_COPYDATA: return WINHELP_HandleCommand((HWND)wParam, lParam); + case WM_CHAR: + if (wParam == 3) + { + SendMessage(GetDlgItem(hWnd, CTL_ID_TEXT), WM_COPY, 0, 0); + return 0; + } + break; + case WM_KEYDOWN: keyDelta = 0;