Weifenluo Dock Panel Suite:浮动窗口使用其设计尺寸?
如何通过 Weifenluo Dock Panel 套件使浮动窗口使用其设计尺寸(而不是 Dock 面板套件的默认尺寸)?
提示:我尝试了 SF.net 上 Dock Panel Suite 论坛的建议,但这似乎不起作用。
How can I make floating windows use their design size (and not the Dock Panel Suite's default size) with the Weifenluo Dock Panel suite?
Hint: I tried a proposition from the Dock Panel Suite forums at SF.net, but that doesn't seem to work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我自己寻找答案时偶然发现了这个问题,并发现蒂莫西的答案对我不起作用。
问题是他概述的方法默认情况下也会浮动窗口。 (也许这是版本差异)
我已经用另一种方式解决了这个问题。我创建了一个继承自 DockContent 的基类,我的所有文档窗口都将从它继承。然后,我为处理此问题的 Show 方法创建了另一个重载(我使用 DockPanelSuite 源代码来帮助构建此方法)。
I stumbled across this question when looking for the answer myself, and found Timothy's answer to not work for me.
The problem was that the method he outlines also floated the window by default. (maybe that's a version difference)
I have solved this another way. I've created a base class that inherits from DockContent that all my document windows would inherit from. I then created another overload for the Show method that handles this (I used the DockPanelSuite source code to help build this method).
当 CForm 派生自 DockContent 时,
我的 MDIContainerWindow 中有一个方法,如下所示
when CForm is derived from DockContent,
I have a method within my MDIContainerWindow which looks like this
这对我有用(在VB中):
This is working for me (in VB):
这对我有用:
This worked for me: