[Bug 13955] owner-drawn combobox height different to windows

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jun 27 06:42:08 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=13955

--- Comment #13 from LIGHTNING UK! <lightning_uk at imgburn.com> 2011-06-27 06:42:07 CDT ---
The problem here is in dlls/user32/combo.c

In the function 'CBGetTextAreaHeight' there are 2 lines that need changing.

measureItem.itemHeight = iTextItemHeight - 6; /* ownerdrawn cb is taller */
.
.
.
iTextItemHeight = 6 + measureItem.itemHeight;

I don't see any point in the first '6' at all and adding '6' to the measured
item height makes the box too tall.

It would match Windows exactly if those lines said...

measureItem.itemHeight = iTextItemHeight;
.
.
.
iTextItemHeight = 2 + measureItem.itemHeight; /* ownerdrawn cb is taller */

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list