Click to See Complete Forum and Search --> : CListCtrl and ON_WM_RBUTTONUP


David Saulnier
May 12th, 1999, 10:47 AM
I've derived a class from CListCtrl and added a ON_WM_RBUTTONUP handler. Problem is it only gets called if I double-right-mouse-button-click. Any ideas? I'm trying to implement a context sensitive menu for the control.
Thanks,
David Saulnier

chiuyan
May 12th, 1999, 12:07 PM
the list control has notify reflect messages
NM_RCLICK
NM_CLICK

that get sent instead of WM_ON_RBUTTONUP & WM_ON_LBUTTONUP. Handle these messages instead.

--michael