I am trying to add a right mouse button menu to a ListView to perform an item delete function and perhaps other item related functions.
The ListView is using the m_view menu object, but I can only get the RMB menu to appear when right clicking on the area to the right of the items on the list view. When clicking on this area within the ListView, the item selection is removed, and SeletectItem() returns -1. When I right click on the items in the ListView, no menu appears. As such, m_view appears to apply only the the ListView as a whole.
Is there an RMB menu that relates to the items within the ListView, and if so, how can I activate it?
Thanks.
Using the newer u_lvs listview solved the problem of displaying the menu when right clicking on the listview items. I also had to override the ancestor for the deleteitem event to get the SelectedItem value I needed for other work. If that event is extended the SelectedItem value is -1 once returning from the ancestor. Many thanks for solving my problem!