Answer to Question #815 in C++ for Will

Question #815
How do you take your program to fullscreen console during init.?
1
Expert's answer
2011-03-07T08:56:56-0500
#define _WIN32_WINNT 0x0500

#include <windows.h>
#include <wincon.h>
#include <string>
#include <algorithm>
#include <iostream>
.................

int main()
{
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd,SW_SHOWMAXIMIZED);
..........
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS