MDI Min Max - 仍在那里 [英] MDI Min Max - still there

查看:139
本文介绍了MDI Min Max - 仍在那里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个MDI表单并制作了一个子表单。


在子表单上,我将Min / Maximize按钮设置为false。


但是当子窗体显示时,最小化按钮和恢复

按钮显示。

通过单击恢复按钮,孩子回到其设计大小,并且

然后你再也不能了b $ b最大化它因为它尊重teh min / max false。


有没有人否则遇到这个/解决方案?


我用Google搜索了一下,我发现了一些尝试解决方案,试图使它成为一个固定的

对话框,其中Control = false但是taht也不适用于我。


我试图创建一个mdi孩子永远最大化的形式,并且

永远不会被用户最小化/无论如何。


Miro

解决方案

你能否覆盖WndProc方法来捕获最小化/恢复

消息?


此外,你的应用程序如何处理多个孩子表格,如果你不能
最小化他们中的任何一个?


谢谢,


Seth Rowe


Miro写道:


我创建了一个MDI表单并制作了一个子表单。


在子表单上,我将Min / Maximize按钮设置为false。


但是当显示子表单时,最小化按钮和恢复

按钮显示。

点击恢复按钮,孩子移动回到它的设计尺寸,并且

然后你再也不能了b $ b最大化它因为它尊重最小/最大错误。


有没有其他人碰到这个/解决方案?


我用Google搜索了一下,我发现了一些尝试解决方案,试图使它成为一个固定的

对话框,其中Control = false但是taht也不适用于我。


我试图创建一个mdi孩子永远最大化的形式,并且

永远不会被用户最小化/


Miro


"米罗" < mi ****** @ golden.netschrieb:


我正在尝试创建一个永远最大化的mdi子表单并且

永远不会被用户最小化/无论如何。



也许使用一组用户控件而不是MDI

孩子更合适。 MDI儿童通常代表文件。


-

MS Herfried K. Wagner

MVP< URL:http:// dotnet.mvps.org/>

VB< URL:http://dotnet.mvps.org/dotnet/faqs/>


我尝试设置/编写类似Quickbooks使用的simillar设置。

我非常喜欢他们创建的设置。


工具栏停靠在顶部,

a面板停靠在左边,左边有一个分离器。

这样就可以在表格的右边部分打开mdi表格。


当你打开窗户时,它们是完全最大化的,并且是一个窗口。 item

被添加到打开的窗口中列表框在

左边。我只允许一个窗口实例打开。否则我将

带到前面。


当有人点击最小化按钮时,所有这些都会被搞砸。


Miro


" rowe_newsgroups" < ro ******** @ yahoo.com在留言中写道

新闻:11 ********************** @ i3g2000cwc.googlegro ups.com ...


你能否覆盖WndProc方法以捕获最小化/恢复

消息?


另外,如果你不能将
最小化,你的应用程序如何处理多个子表单?


谢谢,


Seth Rowe


Miro写道:


>我创建了一个MDI表单并制作了一个子表单。

在子表单上我将Min / Maximize按钮设置为false。

然而,当子表单显示时,最小化按钮和
恢复按钮显示。
通过单击恢复按钮,孩子回到其设计大小,
然后你就可以了更长时间
最大化它会导致它尊重最小/最大错误。

有没有其他人遇到这个/解决方案?

我用Google搜索我发现了一些尝试解决方案,试图使它成为一个
固定
对话框与Control = false,但taht也没有为我工作。

我试图创建一个永远的mdi子表单最大化并且
永远不会被用户最小化/无论如何。

Miro



I created an MDI form and made a child form.

On the child form I set the Min / Maximize buttons to false.

However when the child form displays, the minimize button and the "restore"
button show.
By clicking the restore button, the child moves back to its design size, and
then you can no longer
maximize it cause then it respects teh min/max false.

Has anyone else run into this / solution?

Ive googled and I found some "try" solution that say try to make it a fixed
dialog box with Control = false but taht didnt work for me either.

Im trying to create an mdi child form that will always be maximized and can
never be minimized / whatever by the user.

Miro

解决方案

Could you override WndProc method to trap the minimize / restore down
messages?

Also, how does your app handle multiple child forms if you can''t
minimize any of them?

Thanks,

Seth Rowe

Miro wrote:

I created an MDI form and made a child form.

On the child form I set the Min / Maximize buttons to false.

However when the child form displays, the minimize button and the "restore"
button show.
By clicking the restore button, the child moves back to its design size, and
then you can no longer
maximize it cause then it respects teh min/max false.

Has anyone else run into this / solution?

Ive googled and I found some "try" solution that say try to make it a fixed
dialog box with Control = false but taht didnt work for me either.

Im trying to create an mdi child form that will always be maximized and can
never be minimized / whatever by the user.

Miro


"Miro" <mi******@golden.netschrieb:

Im trying to create an mdi child form that will always be maximized and
can never be minimized / whatever by the user.

Maybe it''s more appropriate to use a set of user controls instead of the MDI
children. MDI children typically represent documents.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


I tried to set up / program a simillar setup like Quickbooks uses.
I really like the setup they created.

A toolbar docked on top,
a panel docked on left with a splitter on left.
That leaves the mdi forms opening in the right portion of the form.

And as you open the windows, they are fully maximized, and a "window" item
gets added to an "open window" listbox in the
left. I only allow one instance of the window to be opend. Otherwise i
bring it to front.

All gets goofed up when someone clicks the minimize button.

Miro

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...

Could you override WndProc method to trap the minimize / restore down
messages?

Also, how does your app handle multiple child forms if you can''t
minimize any of them?

Thanks,

Seth Rowe

Miro wrote:

>I created an MDI form and made a child form.

On the child form I set the Min / Maximize buttons to false.

However when the child form displays, the minimize button and the
"restore"
button show.
By clicking the restore button, the child moves back to its design size,
and
then you can no longer
maximize it cause then it respects teh min/max false.

Has anyone else run into this / solution?

Ive googled and I found some "try" solution that say try to make it a
fixed
dialog box with Control = false but taht didnt work for me either.

Im trying to create an mdi child form that will always be maximized and
can
never be minimized / whatever by the user.

Miro



这篇关于MDI Min Max - 仍在那里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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