Set background mode to transparent before calling owner-drawn user

handling.
This commit is contained in:
Gerard Patel 2001-04-04 00:09:05 +00:00 committed by Alexandre Julliard
parent 744820d014
commit 66226d80f3
1 changed files with 3 additions and 0 deletions

View File

@ -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;