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.
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.
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