richedit: Show context menu on right click

Robert Shearman rob at codeweavers.com
Wed Feb 1 03:15:22 CST 2006


Kevin Koltzau wrote:

>+  case WM_RBUTTONDOWN:
>+    SetFocus(hWnd);
>+    ME_ShowContextMenu(editor, wParam, (short)LOWORD(lParam), (short)HIWORD(lParam));
>+    break;
>  
>

It's better to use WM_CONTEXTMENU instead of WM_RBUTTONDOWN. That way 
the context menu is also displayed when using the keyboard (Shift-F10).

-- 
Rob Shearman




More information about the wine-devel mailing list