Skip to main content
GameDev.net gamedev.net
🔒 Locked

Console Full Screen c++

Started by dk32321 Sep 9, 2005 at 10:21 PM 0 replies 400+ views
Original Post
dk32321
dk32321
Is there a way in c++, to make it where when the program first runs, it move directly to full screen, if anybody can help me i will appreciate it.
Martee
Martee
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setconsoledisplaymode.asp
Note that despite what the MSDN article says, it is available at least as far back as Windows 2000 (although you have to use GetProcAddress() to access it).

Use like so:
COORD coord;
SetConsoleDisplayMode(GetStdHandle(STD_OUTPUT_HANDLE), 1, &coord);
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.