如何在 gui 中启用最大化按钮?

How to enable the maximize button in the gui?

当我创建一个 GUI 时,她的最大化按钮是灰色的 out/disabled,我该如何启用它?

示例:

Gui, Add, Button, w100 h30, Button
Gui, Show, w400 h300

我在阅读文档时发现了这个参数 Maximize: Maximizes and activates the window.

它确实在启动后立即最大化了 GUI:

Gui, Show, Maximize w400 h300

但是,我想在单击最大化按钮时启用 maximizing/restoring。

您需要添加标志+Resize

来自docs

Resize: Makes the window resizable and enables its maximize button in the title bar. To avoid enabling the maximize button, specify +Resize -MaximizeBox.