将多个Word文档窗口放入同一个父窗口中

发布于 2024-10-09 20:39:24 字数 344 浏览 0 评论 0原文

这个 addin 将“文档选项卡”添加到 Microsoft Word 中,我想知道如何完成了吗?我们知道,根据Word的“对象模型”API,每个Word文档都与一个独立的Word窗口相关联,该插件如何将多个Word文档窗口放入同一个父窗口中并使用选项卡进行切换他们之中?

附上此屏幕截图以说明该插件的工作原理: 屏幕截图

This addin adds 'document tabs' into Microsoft Word, I wonder how it's done? As we know, according to Word's 'Object Model' API, each Word document is associated with a standalone Word window, how can that addin put multiple Word document windows into the same parent window and use tabs to switch among them?

Attached this screenshot to illustrate how that addin works:
screenshot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

单身情人 2024-10-16 20:39:24

不知道该插件具体是如何做到的,但如果我不得不猜测,我会说他们将单词放入 MDI 模式,在他们的插件 ui 上创建选项卡,然后在单击时管理各个文档窗口的可见性选项卡。

您可以通过取消选中“在任务栏中显示所有窗口”选项将 Word 置于 MDI 模式。

No idea how that addin does it specifically, but If I had to guess, i'd say they were putting word into MDI mode, creating the tabs on they're addin ui and then managing the visibility of individual doc windows when you click on the tabs.

You can put Word into MDI mode by unchecking the "Show all windows in the task bar" option.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文