There's no documented way to do this....but here's a hack I did a while ago.....
Code:
bool GoFullScreen(void){
TCHAR strTitle[] =
"If you can read this....The program was unable to maximise";
SetConsoleTitle(strTitle);//Set dummy name
hwnd = FindWindow(NULL,strTitle);//Locate window
if(hwnd != NULL){
int nVer = HIBYTE(LOWORD(GetVersion()));//Win 98 or 2K?
if(nVer != 0)//If 98
SendMessage(hwnd,WM_COMMAND,
57359,0);//Send maximise command
else
SendMessage(hwnd,WM_SYSKEYDOWN,
VK_RETURN,536870912);//Send alt-enter (Win2k)
}
return true;
}
It works ok with Win 2000 and I guess XP....but I couldnt get to work consistantly with Win95/98.......And as all my pc's are Win 2000 now....I cant finish it.....