I'm using a CListControl in report view and when the user selects an item and right clicks a popUP menu appears. However, even when no item is selected and the mouse is right clicked anywhere on the control the popUp menu still appears. What I want is the rightClick to only work when the cursur is over one of the items in coumn one. Does anyone know how I can achieve this.
The code I have is like this:
void CMyClass::OnListRClick( NMHDR * pNotifyStruct, LRESULT * result)