PilotinControl has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks!
Looking for the code to disable the Maximize option on the Win32 Console window as I am already creating a console size within the program. I can remove the X (Close) just fine I am running strawberry perl on windows 10. Thanks in advance! - Scott

Replies are listed 'Best First'.
Re: Disable Maximize Option
by stevieb (Canon) on Oct 15, 2020 at 22:56 UTC

    Can you show the code you're using that creates the window?

      My code to disable the close button and maximize screen on startup is below:

      $SIG{INT}= 'IGNORE'; SetCloseButton(0); ShowConsoleWindow(SW_MAXIMIZE);

      I am using the Win32::Console module. Thanks again! - Scott

        An SSCCE would be useful.