本文整理自网络,侵删。
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 使用shgetfileinfo函数获取任何文件大图标
Delphi getmimetypefromfile 获取文件mime类型
Delphi windows 编程[20] - 改变菜单项并换行
更多相关阅读请进入《Delphi》频道 >>