|
加入这条代码(在开头):
- HWND hwnd=GetForegroundWindow();
- int x=GetSystemMetrics(SM_CXSCREEN)+300,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+1000,y+1000,NULL);
- MoveWindow(hwnd,-8,-25,x+300,y+300,1);
- system(setting);
复制代码 |
|