Commit 3b876e40 authored by Francois Boisvert's avatar Francois Boisvert Committed by Alexandre Julliard

Changed CBGetDroppedControlRect to be compliant with Windows API.

parent 0691998e
......@@ -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;
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment