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.
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.
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
I’ll try. vlw
which library? windows. h?
@Hiagosouza Winuser. h
Browser other questions tagged c windows cmd fullscreen
You are not signed in. Login or sign up in order to post.
http://support2.microsoft.com/kb/196103
– someonewithpc
You need to give more details of what this program looks like. When you say
cmd
you mean it’s console? You want thecmd
stay full screen really? It’s not maximized?– Maniero
Put an excerpt of the code from the beginning to see how it is.
– Tony
I need a C program to run on fullscreen
– Hiago Souza
Friend, you can try these steps: https://www.youtube.com/watch?v=d-a_kdWMW28
– Renato Souza
Thanks @Renato_souza_delphi this was for a college job rs... anyway thanks for the help.
– Hiago Souza