how can i "command" the DOS window to go full screen??
(i know the easy way is to tell the user to press alt+enter)
i have seen it done years ago when someone went through the API and also changed the window color.
how can i "command" the DOS window to go full screen??
(i know the easy way is to tell the user to press alt+enter)
i have seen it done years ago when someone went through the API and also changed the window color.
C:\
C:\dos
C:\dos run
RUN dos RUN!
I'm not sure if there is a way to make the console run in full screen mode (without spawining your program from another process), but this should run the console in a maximised window -
Code:#include <windows.h> int main() { HANDLE hConsole; COORD size; HWND hWnd; hConsole = GetStdHandle(STD_OUTPUT_HANDLE); size = GetLargestConsoleWindowSize(hConsole); SetConsoleScreenBufferSize(hConsole,size); SetConsoleTitle("test"); hWnd = FindWindow(NULL,"test"); ShowWindow(hWnd,SW_MAXIMIZE); return 0; }
zen