|
_SUB WinTEST,W570H340,新窗口1,,<ico><color:0xFF><size:32><font:20:Segoe Fluent Icons**###0><size:16><font:12:Segoe Fluent Icons**###0>\uE701,,,-scale:%&LOGPIXELSX%
TIPS* TT,11\n22\n33,5000,1,<icoN><size:16><color:0xFFFFFF><font:12:Segoe Fluent Icons**###0>\uE701
//TIPS* TT,11\n22\n33,5000,1,<icon><size:16><color:0xFF><font:14:宋体**B###>A<text>○
IMAG Image1,L50T5W50H50,<ico><size:80><color:0xFF><font:50:Segoe Fluent Icons**###0>\uE701
ITEM Button3,L150T5W50H50,资源管理器,,<icon><size:16><color:0xFF><font:12:Segoe Fluent Icons**###0>\uE701
_END
CALL $--ret:&DPIA user32.dll,SetProcessDPIAware //设置dpi感知模式
CALL $--ret:&hdc user32.dll,GetDC,#0 //获取显示器0(一般是主显示器)的句柄
CALL $--ret:&LOGPIXELSX Gdi32.dll,GetDeviceCaps,#%hdc%,#88 //获取显示器横向DPI,LOGPIXELSX为#88,纵向LOGPIXELSY为#90,两个值是一样的。
WinTEST
随便设定一个dpi就显示不全
|
|