Set background mode to transparent before calling owner-drawn user
handling.
This commit is contained in:
parent
744820d014
commit
66226d80f3
|
@ -178,8 +178,11 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT iItem, BOOL bHotTrack)
|
||||||
dis.hDC = hdc;
|
dis.hDC = hdc;
|
||||||
dis.rcItem = r;
|
dis.rcItem = r;
|
||||||
dis.itemData = phdi->lParam;
|
dis.itemData = phdi->lParam;
|
||||||
|
oldBkMode = SetBkMode(hdc, TRANSPARENT);
|
||||||
SendMessageA (GetParent (hwnd), WM_DRAWITEM,
|
SendMessageA (GetParent (hwnd), WM_DRAWITEM,
|
||||||
(WPARAM)dis.CtlID, (LPARAM)&dis);
|
(WPARAM)dis.CtlID, (LPARAM)&dis);
|
||||||
|
if (oldBkMode != TRANSPARENT)
|
||||||
|
SetBkMode(hdc, oldBkMode);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
UINT uTextJustify = DT_LEFT;
|
UINT uTextJustify = DT_LEFT;
|
||||||
|
|
Loading…
Reference in New Issue