| | |
How to make console programs full screen?
![]() |
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 |
action api array auto based beginner binary bitmap c++ c/c++ calculator challenge char class classes code coding compile console conversion count createcopyofanyfileinc delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game garbage givemetehcodez graph gui hmenu homeworkhelp homeworkhelper iamthwee ifstream input insert int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node noob output parameter pointer primenumbersinrange problem program programming project python random read recursion reference rpg sockets string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets






