Skip to content
Snippets Groups Projects
Commit 3b876e40 authored by Francois Boisvert's avatar Francois Boisvert Committed by Alexandre Julliard
Browse files

Changed CBGetDroppedControlRect to be compliant with Windows API.

parent 0691998e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/***********************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment