| | |
Help make Console App Open in fullscreen.
![]() |
I saw this at the bottom of this page under Similar Threads:
How to make console programs full screen?
How to make console programs full screen?
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
This program was written for something else, but I added the code to do it in full screen (but its not really full screen on XP, just as big as the cmd prompt window can get :eek: )
#define _WIN32_WINNT 0x0500 #include <windows.h> #include <Wincon.h> #include <string> #include <algorithm> #include <iostream> #include <iomanip> #include <algorithm> #include <cctype> using namespace std; int main() { HWND hWnd = GetConsoleWindow(); ShowWindow(hWnd,SW_SHOWMAXIMIZED); string str = "UPPER-CASE"; transform(str.begin(),str.end(),str.begin(),(int(*)(int))std::tolower); cout << str << endl; cin.ignore(); return 0; }
•
•
Join Date: Aug 2005
Posts: 188
Reputation:
Solved Threads: 3
Wait a minute, there is no SendKeys API I don't think
anyway, I have found a way of simulating ALT & Enter...
found: http://www.adrianxw.dk/SoftwareSite/...Consoles6.html
anyway, I have found a way of simulating ALT & Enter... C++ Syntax (Toggle Plain Text)
void AltEnter() { keybd_event(VK_MENU, 0x38, 0, 0); keybd_event(VK_RETURN, 0x1c, 0, 0); keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP, 0); keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP, 0); return; }
found: http://www.adrianxw.dk/SoftwareSite/...Consoles6.html
![]() |
Similar Threads
- How do you connect to a sql database using C# (C#)
- Unable to open in fullscreen mode (Windows NT / 2000 / XP)
- Some Simple Console App Questons (Java) (Java)
Other Threads in the C++ Forum
- Previous Thread: little help :(
- Next Thread: Reading or writing a double into a bin file
| Thread Tools | Search this Thread |
api application array based binary bitmap c# c++ c/c++ char class classes code coding compile compression console conversion count cpm delete deploy deque desktop developer dialog directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer introductory java lib linkedlist linkednodes linker loop looping loops map math matrix memory multiple news node numbertoword output parameter pointer problem program programming project python random read recursion reference rpg security sorting string strings temperature template test text text-file tree url variable vector video whyisthiscodecausingsegmentationfault win32 windows winsock wordfrequency wxwidgets






