-
Right Click on Rich Edit
I want to capture the WM_RBUTTONUP message when my richedit revieves it so I can open a popup menu. I am not sure but I think I will have to subclass the control. Has anyone ever tried this with a richedit control and have some source code so i can see how they did it? I am using WinAPI and C. Thanks.
- Sean
-
R U kidding? This IS Windows. Welcome to the world of do-it-yourself! Okay, there may be an easy way to do it, but that I don't know. What I DO know it that you can extract the coords of the mouse gesture from the LPARAM at the time of the message. The x is in the LOWORD(lParam), y in the HIWORD(lParam). Test it with PtInRect() (with the rect of the edit)...