[PATCH] Owner-drawn header
gerard patel
gerard.patel at asi.fr
Sun Apr 1 18:00:33 CDT 2001
Using wincvs (http://www.cvsgui.org/download.html), the header titles of the file window
are written on a white background with current CVS when clicking on them to sort
the files.
ChangeLog:
* dlls/comctl32/header.c
Set background mode to transparent before calling owner-drawn user handling.
-------------- next part --------------
Index: dlls/comctl32/header.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/header.c,v
retrieving revision 1.40
diff -u -r1.40 header.c
--- dlls/comctl32/header.c 2000/12/15 20:54:41 1.40
+++ dlls/comctl32/header.c 2001/04/01 22:45:06
@@ -178,8 +178,11 @@
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;
-------------- next part --------------
More information about the wine-patches
mailing list