本文整理自网络,侵删。
功能:获取windows系统的缩放比例
vardc:HDC;scale:Double;begin dc:= GetDC(0); scale := GetDeviceCaps(dc,LOGPIXELSX)/0.96/100; if scale <> 1 then begin FrmDPIError.Show; end;end;
相关阅读 >>
Delphi richedit 的scrollbar自动向下滚动
Delphi xe, xe10, 创建 activeform 和 activex 工程的方法
Delphi 用 tbytesstream 类实现的读文件为十六进制字符的函数
更多相关阅读请进入《Delphi》频道 >>