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