From 66226d80f355284a344c6f06d998b520068ffda0 Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Wed, 4 Apr 2001 00:09:05 +0000 Subject: [PATCH] Set background mode to transparent before calling owner-drawn user handling. --- dlls/comctl32/header.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c index e7493a8deaf..351c8c9e26b 100644 --- a/dlls/comctl32/header.c +++ b/dlls/comctl32/header.c @@ -178,8 +178,11 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT iItem, BOOL bHotTrack) dis.hDC = hdc; dis.rcItem = r; dis.itemData = phdi->lParam; + oldBkMode = SetBkMode(hdc, TRANSPARENT); SendMessageA (GetParent (hwnd), WM_DRAWITEM, (WPARAM)dis.CtlID, (LPARAM)&dis); + if (oldBkMode != TRANSPARENT) + SetBkMode(hdc, oldBkMode); } else { UINT uTextJustify = DT_LEFT;