Changed CBGetDroppedControlRect to be compliant with Windows API.

This commit is contained in:
Francois Boisvert 1999-05-14 18:37:28 +00:00 committed by Alexandre Julliard
parent 0691998e45
commit 3b876e4040
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}
/***********************************************************************