将多个Word文档窗口放入同一个父窗口中
这个 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:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知道该插件具体是如何做到的,但如果我不得不猜测,我会说他们将单词放入 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.