Help make Console App Open in fullscreen.

Reply

Join Date: Oct 2005
Posts: 10
Reputation: !=logical not is an unknown quantity at this point 
Solved Threads: 0
!=logical not !=logical not is offline Offline
Newbie Poster

Help make Console App Open in fullscreen.

 
0
  #1
Oct 13th, 2005
Does anyone know how to make a console application open in fullscreen mode...Iv searched google,yahoo,MSDN, and other fourms and there was no specific C++ code for a console app fullscreen mode...Does anyone by anychance have an Idea on how to go about this?? :mrgreen:
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,314
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 229
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Help make Console App Open in fullscreen.

 
0
  #2
Oct 13th, 2005
I saw this at the bottom of this page under Similar Threads:

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
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 10
Reputation: !=logical not is an unknown quantity at this point 
Solved Threads: 0
!=logical not !=logical not is offline Offline
Newbie Poster

Re: Help make Console App Open in fullscreen.

 
0
  #3
Oct 13th, 2005
I saw that post...Thats why i posted a new one...That code didn't seem to work with my Dev C++ 4.9.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,152
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1437
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Help make Console App Open in fullscreen.

 
0
  #4
Oct 13th, 2005
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;
}
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 10
Reputation: !=logical not is an unknown quantity at this point 
Solved Threads: 0
!=logical not !=logical not is offline Offline
Newbie Poster

Re: Help make Console App Open in fullscreen.

 
0
  #5
Oct 14th, 2005
Thats Close...Do you have anything That would somewhat emulate Alt+Enter Cuz thats what im really lookin for. Thanks.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 188
Reputation: bops is an unknown quantity at this point 
Solved Threads: 3
bops bops is offline Offline
Junior Poster

Re: Help make Console App Open in fullscreen.

 
0
  #6
Jan 25th, 2007
Maybe try the SendKeys API to send the key combination of ALT & enter, probably won't give you the effect you want but it should make it fullscreen. I am searching for the same thing as we speak.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 188
Reputation: bops is an unknown quantity at this point 
Solved Threads: 3
bops bops is offline Offline
Junior Poster

Re: Help make Console App Open in fullscreen.

 
0
  #7
Jan 25th, 2007
Wait a minute, there is no SendKeys API I don't think anyway, I have found a way of simulating ALT & Enter...

  1. void AltEnter()
  2. {
  3. keybd_event(VK_MENU,
  4. 0x38,
  5. 0,
  6. 0);
  7. keybd_event(VK_RETURN,
  8. 0x1c,
  9. 0,
  10. 0);
  11. keybd_event(VK_RETURN,
  12. 0x1c,
  13. KEYEVENTF_KEYUP,
  14. 0);
  15. keybd_event(VK_MENU,
  16. 0x38,
  17. KEYEVENTF_KEYUP,
  18. 0);
  19. return;
  20. }

found: http://www.adrianxw.dk/SoftwareSite/...Consoles6.html
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC