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:

I saw this at the bottom of this page under Similar Threads:

[thread=31665]How to make console programs full screen?[/thread]

I saw that post...Thats why i posted a new one...That code didn't seem to work with my Dev C++ 4.9.

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;
}

Thats Close...Do you have anything That would somewhat emulate Alt+Enter Cuz thats what im really lookin for. Thanks.

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.

Wait a minute, there is no SendKeys API I don't think :S anyway, I have found a way of simulating ALT & Enter...

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/Consoles/Consoles6.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.