[PATCH 6/7] [WinHelp]: let CtrlC to something useful thanks richedit
Eric Pouech
eric.pouech at orange.fr
Sat Jun 21 04:00:50 CDT 2008
A+
---
programs/winhlp32/winhelp.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c
index 9ae54c1..df22988 100644
--- a/programs/winhlp32/winhelp.c
+++ b/programs/winhlp32/winhelp.c
@@ -862,7 +862,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 */
@@ -934,6 +936,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;
More information about the wine-patches
mailing list