( IDE : Visual C++ 6.0 )
I want to use the list control to create a program like Windows Task Manager.
It adds information (item) of the process received through api and displays it through list control.
What I want to do is to right-click on a specific item and a dialog box will appear like a real task manager.
As a result of searching, it seems to use OnContextMenu(CWnd*, CPoint) function, but it does not understand how it works.
I'd like you to provide a simple example.
Thank you :)
This is a working sample extracted from a project of mine. Please take note, that this code is working on VS'15 and likely also on VS'10. I do not have the 1998 version... it's been 20 years already.
I left some comments in the code. Please read up on these.
In order to display the menu, you have to create one first.