/********************************************************************
//得到窗体的句柄
HWND hwnd=GetForegroundWindow();
//设置标题
SetWindowTextA(hwnd,"系统信息");
//得到屏幕的长宽
int x=GetSystemMetrics(SM_CXSCREEN)
+3
00,
y=GetSystemMetrics(SM_CYSCREEN)+300;
//设置控制台的宽度和高度
char setting[30];
sprintf(setting,"mode con:cols=%d lines=%d",x,y);
system(setting);
//置顶窗口
::SetWindowPos(hwnd, HWND_TOPMOST,0,0,x+300,y+300,NULL);
//去掉标题
SetWindowRgn(hwnd, CreateRectRgn(30,30,x+1300,y+1300),true);
//移动窗体。实现全屏
MoveWindow(hwnd,-30,-40,x+300,y+300,true);
/********************************************************************
在程序的一开始放入以上代码即可……