Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[Help] Enabling the maximize button

I've written a GUI program in AutoIT, but the maximize button remains grayed out.
How can I enable it in order to allow the user to maximize the window?

Thanks!
Code
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>



Example()

Func Example()
    ; Create a GUI with various controls.
    Local $hGUI = GUICreate("Example", 500, 500, 500, 500, $WS_MAXIMIZEBOX)
    Local $idOK = GUICtrlCreateButton("OK", 310, 370, 85, 25)

    ; Display the GUI.
    GUISetState(@SW_SHOW, $hGUI)

    ; Loop until the user exits.
    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE, $idOK
                ExitLoop

        EndSwitch
    WEnd

    ; Delete the previous GUI and all controls.
    GUIDelete($hGUI)
EndFunc   ;==>Example
Thanks, pretty much solved it


Possibly Related Threads...
Thread / Author Replies Views Last Post
by SkidyDec 27, 2015 02:58 PM 2 135 Dec 27, 2015 02:58 PM
Last Post: Skidy
by MermozDec 7, 2015 01:00 PM 10 197 Dec 7, 2015 01:00 PM
Last Post: SavageBoys
by silentstareJan 25, 2015 07:30 PM 1 183 Jan 25, 2015 07:30 PM
Last Post: halfdead