Don't use DeleteDC on DC handles returned by GetDC. Modified: trunk/reactos/lib/comctl32/header.c _____
Modified: trunk/reactos/lib/comctl32/header.c --- trunk/reactos/lib/comctl32/header.c 2005-07-26 15:21:41 UTC (rev 16746) +++ trunk/reactos/lib/comctl32/header.c 2005-07-26 15:47:26 UTC (rev 16747) @@ -290,8 +290,8 @@
if (iw || bw) { HDC hClipDC = GetDC(hwnd); HRGN hClipRgn = CreateRectRgn(r.left, r.top, r.right, r.bottom); + SelectClipRgn(hClipDC, hClipRgn); - if (bw) { HDC hdcBitmap = CreateCompatibleDC (hClipDC); SelectObject (hdcBitmap, phdi->hbm); @@ -307,7 +307,7 @@ }
DeleteObject(hClipRgn); - DeleteDC(hClipDC); + ReleaseDC(hwnd, hClipDC); }
if (((phdi->fmt & HDF_STRING)