创建没有最大化按钮的窗口框架而不调整选项大小? [英] Creating window frame without maximize button and without resizing options?

查看:78
本文介绍了创建没有最大化按钮的窗口框架而不调整选项大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个像普通窗口一样的窗口,但没有最大化按钮和边框大小。



通过互联网搜索,研究MSDN,我已经知道原则上实现两者是不可能的。



没有窗口样式同时执行这两种操作(我可以禁用最大化按钮,但这不是我的目标;至于删除调整大小选项,我在文档中找到了合适的窗口样式。)



最接近的描述是对话框框架行为(没有大小调整边框),但有额外的最小化按钮。



问题:



有没有办法以其他方式实现我的目标?



如果是,请提供教程或代码示例的链接吗?这将是我第一次做这样的事情,可以使用我能得到的所有帮助吗?



重要提示:我找到了 [ ^ ]示例在搜索解决方案时,但它对我没有帮助,因为我的目标是 Windows XP 以上。

I need to create a window that acts like "normal" one, but without maximize button, and sizing border.

Searching through Internet, and studying MSDN, I have learned that natively achieving both is impossible.

There is no window style that does both ( I can disable maximize button, but that is not my aim; as for removing resizing options, I have found suitable window styles in the documentation ).

The closest description would be the dialogbox frame behavior ( no sizing border ), but with extra minimize button.

QUESTION:

Is there a way to achieve my goal some other way?

If yes, can you please provide links to tutorials or code examples? This would be the first time for me to do such a thing and could use all the help I could get?

An important note: I have found this[^] example while searching for a solution, but it will not help me because I target Windows XP onwards.

推荐答案

通过互联网搜索,并研究MSDN,我已经了解到本地实现两者是不可能的。

根本不是真的,只需使用 WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_DLGFRAME | WS_MINIMIZEBOX CreateWindow CreateWindowEx 调用中的样式。
Searching through Internet, and studying MSDN, I have learned that natively achieving both is impossible.
Not true at all, just use WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_DLGFRAME | WS_MINIMIZEBOX styles in your CreateWindow or CreateWindowEx call.


这篇关于创建没有最大化按钮的窗口框架而不调整选项大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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