Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/listview.c:
if (!theme || !(exstyle & WS_EX_CLIENTEDGE)) return DefWindowProcW (infoPtr->hwndSelf, WM_NCPAINT, (WPARAM)region, 0);
- GetWindowRect(infoPtr->hwndSelf, &r);
- GetClientRect(infoPtr->hwndSelf, &r);
- cliprgn = CreateRectRgn(r.left, r.top, r.right, r.bottom);
- if (region > (HRGN)1)
- {
CombineRgn(cliprgn, region, cliprgn, RGN_DIFF);
dc = GetDCEx(infoPtr->hwndSelf, cliprgn, DCX_USESTYLE | DCX_WINDOW | DCX_INTERSECTRGN);
- }
- else
dc = GetDCEx(infoPtr->hwndSelf, cliprgn, DCX_USESTYLE | DCX_WINDOW | DCX_EXCLUDERGN);
Could you add some tests?