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.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;
|
||||
|
|
Loading…
Reference in New Issue