petzold说这个HORZSIZE是:
HORZSIZE is documented as "Width, in millimeters, of the physical screen",should be documented as a "logical width", because the values are derived from the HORZRES, LOGPIXELS values. The formulas is
Horizontal Size(mm)=25.4* Horizontal Resolution(pixels)/Logical Pixels X(dots per inch)
我使用了这个计算
Horizontal Resolution(pixels)的值是1024,Logical Pixels X(dots per inch)即DPI是96,算的结果是270.93333333,约等于271,这也和306或者320完全不符啊,所以我不知道这是怎么得来的