Fix Bug #13955 - Ownerdrawn combobox height different to Windows=0A=

Richard Bradbrook richard at bradders2000.co.uk
Mon Jun 27 12:48:34 CDT 2011


=0A=
---=0A=
 dlls/user32/combo.c |    4 ++--=0A=
 1 files changed, 2 insertions(+), 2 deletions(-)=0A=
=0A=
diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c=0A=
index 9c22df6..ef246db 100644=0A=
--- a/dlls/user32/combo.c=0A=
+++ b/dlls/user32/combo.c=0A=
@@ -262,10 +262,10 @@ static INT CBGetTextAreaHeight(=0A=
     measureItem.CtlID      =3D id;=0A=
     measureItem.itemID     =3D -1;=0A=
     measureItem.itemWidth  =3D clientRect.right;=0A=
-    measureItem.itemHeight =3D iTextItemHeight - 6; /* ownerdrawn cb is =
taller */=0A=
+    measureItem.itemHeight =3D iTextItemHeight;=0A=
     measureItem.itemData   =3D 0;=0A=
     SendMessageW(lphc->owner, WM_MEASUREITEM, id, (LPARAM)&measureItem);=0A=
-    iTextItemHeight =3D 6 + measureItem.itemHeight;=0A=
+    iTextItemHeight =3D 2 + measureItem.itemHeight; /* ownerdrawn cb is =
taller */=0A=
 =0A=
     /*=0A=
      * Send a second one in the case of a fixed ownerdraw list to =
calculate the=0A=
-- =0A=
1.7.4.1=0A=
=0A=

------=_NextPart_000_00ED_01CC34CD.C22582C0--





More information about the wine-patches mailing list