Run Fullscreen program on Windows 7

Asked

Viewed 604 times

6

Hello I have a project already finished, it was written in C language as I do so that it runs in fullscreen in windows 7?

Do you have a library for this? I’ve been looking on the internet but I haven’t found anything like it.

  • 1

    http://support2.microsoft.com/kb/196103

  • 1

    You need to give more details of what this program looks like. When you say cmd you mean it’s console? You want the cmd stay full screen really? It’s not maximized?

  • Put an excerpt of the code from the beginning to see how it is.

  • I need a C program to run on fullscreen

  • Friend, you can try these steps: https://www.youtube.com/watch?v=d-a_kdWMW28

  • Thanks @Renato_souza_delphi this was for a college job rs... anyway thanks for the help.

Show 1 more comment

1 answer

8


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: http://support2.microsoft.com/kb/196103

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

Source: https://stackoverflow.com/a/8346339/194717

Documentation: http://msdn.microsoft.com/en-us/library/windows/desktop/ms686028%28v=vs.85%29.aspx

Browser other questions tagged

You are not signed in. Login or sign up in order to post.