mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
comctl32: Propagate the return value of WM_ERASEBKGND.
This commit is contained in:
parent
d892239f5a
commit
552ad2d93e
1 changed files with 3 additions and 2 deletions
|
@ -985,16 +985,17 @@ PAGER_EraseBackground (const PAGER_INFO* infoPtr, HDC hdc)
|
|||
{
|
||||
POINT pt, ptorig;
|
||||
HWND parent;
|
||||
LRESULT ret;
|
||||
|
||||
pt.x = 0;
|
||||
pt.y = 0;
|
||||
parent = GetParent(infoPtr->hwndSelf);
|
||||
MapWindowPoints(infoPtr->hwndSelf, parent, &pt, 1);
|
||||
OffsetWindowOrgEx (hdc, pt.x, pt.y, &ptorig);
|
||||
SendMessageW (parent, WM_ERASEBKGND, (WPARAM)hdc, 0);
|
||||
ret = SendMessageW (parent, WM_ERASEBKGND, (WPARAM)hdc, 0);
|
||||
SetWindowOrgEx (hdc, ptorig.x, ptorig.y, 0);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue