Console ,ConsoleColor ,caption in graphical mode
Posted: Thu May 09, 2024 9:24 am
I want to display the console without borders or scrollbars. When I set up this display, it works, but when I want to display the whole inside area of the console with a blue background, then at the bottom of the screen and to the side appears a black background (see my program which shows the problem). Does anyone have a solution so that I can apply the color I want to the whole inside area of the console?
Thanks in advance
Thanks in advance
Code: Select all
Import ""
GetConsoleWindow()
EndImport
If OpenConsole()
hWnd = GetConsoleWindow()
SetWindowLongPtr_(hWnd, #GWL_STYLE, GetWindowLongPtr_(hWnd, #GWL_STYLE) &~ (#WS_SYSMENU|#WS_SIZEBOX|#WS_CAPTION))
SetWindowPos_(hWnd, #Null, 0, 0, 0, 0, #SWP_NOSIZE|#SWP_NOMOVE|#SWP_FRAMECHANGED);
EnableGraphicalConsole(1)
ConsoleColor(15,1)
ClearConsole()
ConsoleCursor(0)
PrintN("")
PrintN(" Appuyez sur [Entree] pour quitter")
ConsoleCursor(1)
Input()
CloseConsole()
EndIf