如何将过程表示为图标 [英] How to represent processes as icons

查看:113
本文介绍了如何将过程表示为图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我创建了一个应用程序,该应用程序显示PC中所有活动的进程,这些进程具有有效的TCP& UDP连接(使用GetExtendedTcpTable& GetExtendedUdpTable并在CListCtrl控件中显示结果).


现在,我需要以一种更智能的方式显示输出,我需要显示一个代表本地PC的图标(可能在屏幕中间),然后将活动进程表示为本地PC图标周围的图标,然后将各行连接起来与其他图标的本地PC图标.当鼠标悬停在进程图标上时,它将显示工具提示,其中包含该进程的详细信息(目标IP,目标端口等).

在一般情况下,如何在流程中创建类,我是否需要为流程创建一个类,然后将每个流程创建为具有该类对象的类,并使用包含流程详细信息的数据变量来创建,如果这样,如何将屏幕上的流程图​​标与该对象?

任何帮助表示赞赏.

使用的语言:带有或不带有MFC的c ++. (以前无法在.net上运行,现在不是开始学习的好时机!)

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!)

推荐答案

这些链接将非常有用

http://msdn.microsoft.com/en-us/library/bb762179(VS .85).aspx [ ^ ]
http://www.codeproject.com/KB/files/cuseshgetfileinfo.aspx [ ^ ]
These links will be usefull

http://msdn.microsoft.com/en-us/library/bb762179(VS.85).aspx[^]
http://www.codeproject.com/KB/files/cuseshgetfileinfo.aspx[^]


使用 CListView的功能 [
Use the features of the CListView[^] class to display as icons.


确实是Radhakrishnan,这些链接很有用.
它确实解决了部分解决方案,但是我正在寻找应用程序的总体设计.

感谢理查德的建议.
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.


这篇关于如何将过程表示为图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆