C ++的Windows中删除最大化框 [英] C++ Windows remove maximize box

查看:122
本文介绍了C ++的Windows中删除最大化框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打电话的时候使用这些窗口样式的CreateWindow 结果
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX 结果
这将禁用最大化框,但有什么办法可以彻底清除吗?

I'm using these window styles when calling CreateWindow
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX
This disables the maximize box, but is there any way I can completely remove it?

推荐答案

没有简单的方法,但如果你要绘制标题栏自己 - 在这种情况下,你可以做到这一点。

No easy way, but if you are going to draw the title bar yourself - in this case you can do it.

要给你一个想法,这篇文章添加一个最小化到托盘 -button到窗体的标题栏介绍了如何添加一个按钮。卸下标准按钮是差不多的 - 定制非客户区

To give you an idea, this article Adding a 'Minimize to tray'-button to a Form's caption bar explains how to add a button. Removing standard button is about the same - customization of non-client area.

这篇关于C ++的Windows中删除最大化框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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