Better viewport origin in DrawThemeParentBackground().

This commit is contained in:
Frank Richter 2005-07-12 17:55:20 +00:00 committed by Alexandre Julliard
parent c447939033
commit 4d363ab085
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
MapWindowPoints(hParent, NULL, (LPPOINT)&rt, 2);
}
SetViewportOrgEx(hdc, rt.left, rt.top, &org);
OffsetViewportOrgEx(hdc, -rt.left, -rt.top, &org);
SendMessageW(hParent, WM_ERASEBKGND, (WPARAM)hdc, 0);
SendMessageW(hParent, WM_PRINTCLIENT, (WPARAM)hdc, PRF_CLIENT);