2012-08-30 58 views

回答

0

SystemParametersInfo可以爲你做。這是C++解決方案。在任務欄上方獲得一些呼吸空間。

#include<iostream> 
#include<windows.h> 
#include <stdio.h> 
#pragma comment(lib, "user32.lib") 

using namespace std; 
int main(){ 
RECT rect; 
//rleft=r->top=0; 
//r->bottom=500; 
//r->right=1000; 
SystemParametersInfo(SPI_GETWORKAREA, 
     0, 
     &rect, 
       SPIF_UPDATEINIFILE); 

cout<<"Old Positions:"; 
cout<<rect.left<<"," 
<<rect.top<<"," 
<<rect.bottom<<"," 
<<rect.right; 

rect.bottom-=32; 
SystemParametersInfo(SPI_SETWORKAREA, 
     0, 
     &rect, 
       SPIF_SENDCHANGE); 

cout<<"New Positions:"; 
cout<<rect.left<<"," 
<<rect.top<<"," 
<<rect.bottom<<"," 
<<rect.right; 

return 0; 
} 
0

嘗試MaxMax(免費)

評論:www.addictivetips.com/windows-tips/maxmax-limits-fullscreen-maximized-window-to-user-defined-area/

主頁:www.kmtools.win-os.pl/omaxmax.php?lang=ang