From 3b876e4040b2d508c3e784f659bd314712e5c816 Mon Sep 17 00:00:00 2001 From: Francois Boisvert Date: Fri, 14 May 1999 18:37:28 +0000 Subject: [PATCH] Changed CBGetDroppedControlRect to be compliant with Windows API. --- controls/combo.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/controls/combo.c b/controls/combo.c index 8732e2398a3..91a4867de91 100644 --- a/controls/combo.c +++ b/controls/combo.c @@ -403,7 +403,14 @@ static void CBCalcPlacement( */ static void CBGetDroppedControlRect( LPHEADCOMBO lphc, LPRECT lpRect) { - CopyRect(lpRect, &lphc->droppedRect); + /* In windows, CB_GETDROPPEDCONTROLRECT returns the upper left corner + of the combo box and the lower right corner of the listbox */ + + GetWindowRect(lphc->self->hwndSelf, lpRect); + + lpRect->right = lpRect->left + lphc->droppedRect.right - lphc->droppedRect.left; + lpRect->bottom = lpRect->top + lphc->droppedRect.bottom - lphc->droppedRect.top; + } /***********************************************************************