Click here to Skip to main content
15,886,049 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have created an application that shows all running processes in the PC that have active TCP & UDP connections (using GetExtendedTcpTable & GetExtendedUdpTable and displaying the result in a CListCtrl control).


Now I need to display the output in a more intelligent way, I need to display an icon that represents the local PC (probably in the middle of the screen), then active processes are represented as icons around the local PC icon, then lines connecting local PC icon with other icons. When the mouse is over a process icon, it should display a tool tip with details of the process (destination IP, destination port .. etc).

Need your advise please on how to generally create such solution , do I create a class for processes, then create each process as an objects of that class with data variables that holds process details, if so how to link the process icon in the screen with the object?

Any help is appreciated.

Language used: c++ with or without MFC. (didn't work on .net before, not a good time to start learning now!)
Posted

Use the features of the CListView[^] class to display as icons.
 
Share this answer
 
Indeed Radhakrishnan, those links are usefull.
It does solve part of the solution, but the overall design of the application is what I'm looking for.

Thanks Richard for you suggestion.
 
Share this answer
 
Sorry, my previous answer really does not fit with your problem. The only recent examples I have seen of issues such as you describe have been created with WPF, which offers some really excellent ways of displaying lists in a more visual style. Take a look at this link[^] for some samples.
 
Share this answer
 
Hi,

Either you are satisfied with a customization of the system provided controls (in your case the Tree-View Control[^]) or you have to roll-up your own :sigh:

Have a look at The Hilo Browser[^] sample which gives a very nice carousel animated view of a folder-file hierarchy. It requires VC2010 Express (no MFC) to compile and Vista or Win7 to execute.

From your question wording I suggest exploring the first way, using and customizing the system Tree-View (you will find zillions of samples in CodeProject or elsewhere), before trying the second.

Good luck :)
AR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900