本文整理自网络,侵删。
procedure TForm1.Button1Click(Sender: TObject);var DC: HDC; t:integer;begin
DC := GetDC(0); t:=GetDeviceCaps(DC, logpixelsx) ; ReleaseDC(0, DC); edit1.Text:= inttostr(t);
edit2.Text:= vartostr (t / 96 );
end;
相关阅读 >>
Delphi建立快捷方式的函数:createshortcut()
更多相关阅读请进入《Delphi》频道 >>