title: How do I create a right-click menu in a list control?
body: <p>( IDE : Visual C++ 6.0 )</p>
  
  <p>I want to use the list control to create a program like Windows Task Manager.</p>
  
  <p>It adds information (item) of the process received through api and displays it through list control.</p>
  
  <p>What I want to do is to right-click on a specific item and a dialog box will appear like a real task manager.</p>
  
  <p>As a result of searching, it seems to use OnContextMenu(CWnd*, CPoint) function, but it does not understand how it works.</p>
  
  <p>I'd like you to provide a simple example.</p>
  
  <p>Thank you :)</p>