comctl32/tests: [try 2] Make the test dpi and Theme aware: use SM_CYSIZE

Detlef Riekenberg wine.dev at web.de
Tue Feb 3 17:38:47 CST 2009


try 2: without the check for win9x


The status test failed on installations with 120 dpi.

After a lot of "try and error" from 72 to 144 dpi with
different formula for the min height, different results on my machine
and a failing XP machine at 96dpi, I found the reason:

The minimal height depends on the appearance setting
"[In]Active Title Bar", which is SM_CYSIZE.

The test now pass on win98se, win2k and Wine with a different height
for the title bar (tested from 18 to 30).

To reduce the test log size, I moved the dump of the current tested
font name from a trace to the ok.


Why is MS so stupid and use BYTE in ENUMLOGFONTEXA and
WCHAR in ENUMLOGFONTEXW for the strings in wingdi.h, 
while MSDN document them as TCHAR?


-- 
 
By by ... Detlef

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-comctl32-tests-Make-the-test-dpi-and-Theme-aware-u.patch
Type: application/mbox
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090204/f2074057/attachment.bin 


More information about the wine-patches mailing list