用户界面问题:一种让 MDI 子项显示在任务栏中的方法? [英] User Inteface problem: A way to get MDI Children to show up in taskbar?

查看:31
本文介绍了用户界面问题:一种让 MDI 子项显示在任务栏中的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想就以下问题提供您的建议:我们正在研究针对我们正在开发的 Windows 窗体应用程序的不同用户界面解决方案,我们得出的结论是,在我看来,最佳解决方案是 MS 方式的单一文档界面Word 做到了:也就是说,每次我们创建一个新文档时,它都会在一个新的主"窗口中打开,并在所有主"窗口关闭时终止进程.

I'd like your advice on the following issue: We are studying different User Interface solutions for an Windows Forms application we are developing and we have come to the conclusion that the best solution seems to me a Single Document Interface the way MS Word does it: That is, each time we create a new document it will open in a new "main" window and the process is killed when all "main" windows are closed.

然而,MS Excel 处理 MDI 界面的方式也很有趣,由于我们的应用程序的工作方式,它可能是一个很好的解决方案.问题是,由于一个主要原因:在任务栏中显示 MDI 子表单,此解决方案似乎更加复杂.

However, the way MS Excel approaches the MDI interface is also interesting and, due to the way our application works, it could be a good solution. The problem is that this solution seems to be more complicated due to one main reason: Showing MDI Child Forms in the task bar.

所以我的问题如下:谁能给我一些关于如何让 MDI 子项显示在任务栏中的建议.我几乎可以肯定,.NET Framework 绝对没有办法做到这一点.我一直在研究如何查看相关的 Windows API,但我似乎没有看到一种明显的方法来尝试获得我们想要的东西.

So my question is the following: can anybody give me some advice on how to get MDI Children to show up in the task bar. I'm almost certain there is absolutely no way to do it from the .NET Framework. I've been studying ways to go looking at the relevant Windows API but I don't seem to see an obvious way to try and get to what we want.

提前致谢.

编辑

我忘了提及应用主要针对 Win XP 平台.

I forgot to mention app targets mainly Win XP platform.

推荐答案

您说得对,无法直接从 C# 执行此操作,因为此功能未在 .Net Fx 中实现,而是在 Windows API 中实现.幸运的是,Microsoft 提供了一个托管库来访问 Windows 7(以及一些 Windows Vista 中的一些)中的这些功能.查看Microsoft .Net Framework 的Windows API 代码包.您正在寻找的功能称为标签式缩略图.

You are right that there is no way to do this directly from C# as this functionality is not implemented in the .Net Fx, but rather in the Windows API. Luckily Microsoft provides a managed library to access these functions in Windows 7 (and some Windows Vista ones). Take a look at the Windows API Code Pack for Microsoft .Net Framework. The functionality you are looking for is called Tabbed Thumbnails.

这篇关于用户界面问题:一种让 MDI 子项显示在任务栏中的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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