Run program in FullScreen in Windows 7

5

Hello, I have a project already finished, it was written in C language, how do I run it in fullscreen on windows 7?

Are there any libraries for this? I've been searching the internet, but I have not found anything like it.

    
asked by anonymous 17.11.2014 / 20:04

1 answer

7

You can try to maximize:

#include <windows.h>
...
HWND hwndConsole = NULL;
hwndConsole = FindWindow(NULL, "Test.exe"); // TODO: pegar o hwnd do processo atual
if(NULL != hwndConsole)
{
   SetForegroundWindow(hwndConsole);
   ShowWindow(hwndConsole, SW_MAXIMIZE);
}

Source: link

Or older windows (before Windows 7):
You can try calling the SetConsoleDisplayMode function with the CONSOLE_FULLSCREEN_MODE (1)

Source: link

Documentation: link

    
17.11.2014 / 20:48