| | |
Help make Console App Open in fullscreen.
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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 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 iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output parameter 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






