I just dont understand why people want to use windows consoles for this type of stuff....
Sure you can change cursor position, colour the console, colour the test, make it full screen, catch mouse and arrow key clicks....but why? If you need this type of functionality from WIN Consoles, you will need enough Windows knowledge to create proper windows apps......
Anyway...enough ranting......here is a little trick I developed.....
Code:
#include <windows.h>
#include <iostream>
using std::cout;
using std::endl;
using std::cin;
void GoFullScreen(void){
TCHAR strTitle[] = "Terrible Console";
SetConsoleTitle(strTitle);
HWND hwnd = FindWindow("ConsoleWindowClass",strTitle);
if(hwnd != NULL){
SendMessage(hwnd,WM_SYSKEYDOWN,VK_RETURN,536870912);
}
else cout << "Error - Could not Maximise" << endl;
}
int main()
{
GoFullScreen();
//Do console type stuff
return 0;
}
Oh...btw that is specific to Windows 2000......it will choke on Win 98 (another reason to do a proper windows app )