在C#.NET4.0中替换Shell [英] Shell replacement in C# .NET4.0

查看:97
本文介绍了在C#.NET4.0中替换Shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更换外壳时有些卡住,我一直在网上寻找答案,但是似乎没人能找到答案,或者代码已经过时了,无法再使用了.我只需要模拟任务栏上显示所有打开的应用程序的功能,以及将鼠标悬停在图标上时显示该应用程序的小预览的功能.有人可以帮忙吗,它需要用于.net4.0.在此先感谢.

I''m a little stuck in my shell replacement and I have been searching online for the answer and no one seems to have it or the code is out-dated and won''t work anymore. I just need to emulate the task bar''s functionality of showing all open applications and show a small preview of the app when the icon is hovered over. Can someone help please it needs to be for .net4.0. Thanks in advance.

推荐答案

使用什么版本的.Net都无关紧要(只要您不使用1.n,因为那是因为太老了,不值得考虑).您需要做的是熟悉操作系统如何实现该功能.如果您停下来想一想,它只是该应用程序当前活动窗口的缩小版本.查看MeasureOverrideArrangeOverrideComputeScaleFactor以及相关方法.

除此之外,您还没有展示过您尝试过的任何东西,因此我们不知道您在哪里需要帮助.
It shouldn''t matter what version of .Net you use (as long as you''re not using 1.n because that''s just so freakin'' old it''s not worth considering). What you need to do is become familiar with how the OS implements the feature. If you stop and think about it, it''s merely a scaled down version of the currently active window for the app in question. Check out MeasureOverride, ArrangeOverride and ComputeScaleFactor, and related methods.

Beyond all of that, you haven''t demonstrated anything you''ve tried, so we don''t know where you need assistance.


这篇关于在C#.NET4.0中替换Shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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