[comctl32] Header: send one more notify

Vitaliy Margolen wine-patch at kievinfo.com
Thu Jun 30 09:49:23 CDT 2005


Send posterase | prepaint notify.

Vitaliy Margolen

changelog:
  dlls/comctl32/header.c
    Send CDDS_ITEMPOSTERASE | CDDS_PREPAINT notify
-------------- next part --------------
Index: dlls/comctl32/header.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/header.c,v
retrieving revision 1.74
diff -u -p -r1.74 header.c
--- dlls/comctl32/header.c	14 May 2005 11:03:17 -0000	1.74
+++ dlls/comctl32/header.c	30 Jun 2005 14:47:15 -0000
@@ -193,6 +193,21 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT
 
     if (phdi->fmt & HDF_OWNERDRAW) {
 	DRAWITEMSTRUCT dis;
+	NMCUSTOMDRAW nmcd;
+	
+	nmcd.hdr.hwndFrom = hwnd;
+	nmcd.hdr.idFrom   = GetWindowLongPtrW (hwnd, GWLP_ID);
+	nmcd.hdr.code     = NM_CUSTOMDRAW;
+	nmcd.dwDrawStage  = CDDS_PREPAINT | CDDS_ITEM | CDDS_ITEMPOSTERASE;
+	nmcd.hdc          = hdc;
+	nmcd.dwItemSpec   = iItem;
+	nmcd.rc           = r;
+	nmcd.uItemState   = phdi->bDown ? CDIS_SELECTED : 0;
+	nmcd.lItemlParam  = phdi->lParam;
+
+	SendMessageW (infoPtr->hwndNotify, WM_NOTIFY,
+			(WPARAM)nmcd.hdr.idFrom, (LPARAM)&nmcd);
+
 	dis.CtlType    = ODT_HEADER;
 	dis.CtlID      = GetWindowLongPtrW (hwnd, GWLP_ID);
 	dis.itemID     = iItem;


More information about the wine-patches mailing list