int GetDeviceCaps( HDC hdc, // device-context handle
int nIndex // index of capability to query
);
LOGPIXELSX Number of pixels per logical inch along the screen width.
LOGPIXELSY Number of pixels per logical inch along the screen height.
int nIndex // index of capability to query
);
LOGPIXELSX Number of pixels per logical inch along the screen width.
LOGPIXELSY Number of pixels per logical inch along the screen height.
x=GetSystemMetrics(SM_CXSCREEN)
y=GetSystemMetrics(SM_CYSCREEN)
Screen.Height
够你用的了
第十期的电脑报上就有相关的文章!
Screen.Height
比较简单哦
x=GetSystemMetrics(SM_CXSCREEN)
y=GetSystemMetrics(SM_CYSCREEN)
同上。
wi,hn:integer;
begin
wi:=Screen.Width; //取得横坐标
hn:=Screen.Height; //取得纵坐标
end;