Link to home
Start Free TrialLog in
Avatar of knewton76
knewton76

asked on

Detect right click in richeditview

How can I detect a right click in a richeditview?  I create the ctrl itself, and in Class Wizard I cannot see anything that'll let me detect the click.  I manually added this, but it doesn't work...

View's header file:
afx_msg void OnRclickView(NMHDR* pNMHDR, LRESULT* pResult);

View's .cpp file: (message map)
ON_NOTIFY(NM_RCLICK, IDC_EDITVIEW, OnRclickView)

ASKER CERTIFIED SOLUTION
Avatar of Vinayak Kumbar
Vinayak Kumbar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of knewton76
knewton76

ASKER

Maybe I'm doing something wrong, but when I create a new richedit class, I only see messages for WM_RBUTTONDOWN, WM_RBUTTONUP, WM_RBUTTONDBCLK.  Oh well, mapping to WM_RBUTTONDOWN works just as well.