Commit 21b9cb07 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winhelp: Let CtrlC do something useful thanks to richedit.

parent cec4ee86
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment