| | |
How to make console programs full screen?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
No, you have to simulate a few keystrokes with the Windows API function keybd_event. IIRC:
C++ Syntax (Toggle Plain Text)
keybd_event ( VK_MENU, 0, 0, 0 ); keybd_event ( VK_RETURN, 0, 0, 0 ); keybd_event ( VK_RETURN, 0, KEYEVENTF_KEYUP, 0 ); keybd_event ( VK_MENU, 0, KEYEVENTF_KEYUP, 0 );
I'm here to prove you wrong.
This works with Dev-C++ but not with VC++ 6.0 (I think it is a compiler bug)
C++ Syntax (Toggle Plain Text)
HWND hWnd = GetConsoleWindow(); ShowWindow(hWnd,SW_SHOWMAXIMIZED);
![]() |
Similar Threads
- full screen applet in java (Java)
- Anyone know how to? (C)
- Help make Console App Open in fullscreen. (C++)
- Full screen console applications (C++)
- Unable to open games in full screen (Windows NT / 2000 / XP)
- Full Screen (Java)
Other Threads in the C++ Forum
- Previous Thread: Old ammeture programmer.need help
- Next Thread: C++ reading,writing,displaying a file?
| Thread Tools | Search this Thread |
api array based binary c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock wordfrequency wxwidgets






