如何调整弹出窗口的大小? [英] How do I resize my popup windows?

查看:234
本文介绍了如何调整弹出窗口的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我错误地制作了具有固定尺寸宽度和高度的弹出窗口。

那些窗户也没有最大化和最小化盒子。

现在,我想让它们自由调整大小,但我检查TRUE中属性的最大和最小框,甚至点击最大值框,那些弹出窗口没有放大。

还有什么我错过了它们的属性?



谢谢。



我尝试了什么:



更多的一天浪费在解决问题上。

I have mistaken to make popup windows that have fixed sizes of widths and heights.
Those windows didn't have maximize and minimize boxes, too.
Now, I want to make them resize freely but I check TRUE the max and min box in the property, and even clicking the max. box, those popup windows are not enlarged.
What else I missed the properties of them?

Thank you.

What I have tried:

More one day are wasted to solve the problems.

推荐答案

它们必须具有调整大小标志或边框设置。它可能是WS_BORDER标志。



你最好在代码中检测弹出窗口必须有多大,然后用合适的大小创建。
They must have the resize flag or border set. It may be the WS_BORDER flag.

Best is you detect in your code how big the popup must get and then create with the approbiate size.


只需将创建中的样式标志从WS_POPUP更改为WS_OVERLAPPEDWINDOW,并且您不再有弹出窗口: - )
Just change the style flags in the creation from WS_POPUP to WS_OVERLAPPEDWINDOW and you no longer have a popup window :-)


您创建的窗口中的内容如下所示: MFC



You create your window with something that look like this in MFC

myWindow->CreateEx(0, your_Classname, your_titleString, WS_POPUP | WS_VISIBLE, .....);



更改WS_POPUP标志... WS_OVERLAPPEDWINDOW。



如果您不知道它在哪里使用编译器菜单。 。编辑 - >查找并替换 - >在文件中查找并搜索WS_POPUP。我猜测只会出现一次。


Change the WS_POPUP flag ... WS_OVERLAPPEDWINDOW.

If you don't know where it is use the compiler menus .. "Edit"->"find and replace" ->"find in files" and search for WS_POPUP. I am guessing there is only going to be exactly one occurance of it.


这篇关于如何调整弹出窗口的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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