comctl32: XOR'ing with a black pen is not useful.
This commit is contained in:
parent
57f869d557
commit
0e9c9772ef
|
@ -727,17 +727,9 @@ static void
|
||||||
HEADER_DrawTrackLine (const HEADER_INFO *infoPtr, HDC hdc, INT x)
|
HEADER_DrawTrackLine (const HEADER_INFO *infoPtr, HDC hdc, INT x)
|
||||||
{
|
{
|
||||||
RECT rect;
|
RECT rect;
|
||||||
HPEN hOldPen;
|
|
||||||
INT oldRop;
|
|
||||||
|
|
||||||
GetClientRect (infoPtr->hwndSelf, &rect);
|
GetClientRect (infoPtr->hwndSelf, &rect);
|
||||||
|
PatBlt( hdc, x, rect.top, 1, rect.bottom - rect.top, DSTINVERT );
|
||||||
hOldPen = SelectObject (hdc, GetStockObject (BLACK_PEN));
|
|
||||||
oldRop = SetROP2 (hdc, R2_XORPEN);
|
|
||||||
MoveToEx (hdc, x, rect.top, NULL);
|
|
||||||
LineTo (hdc, x, rect.bottom);
|
|
||||||
SetROP2 (hdc, oldRop);
|
|
||||||
SelectObject (hdc, hOldPen);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
|
|
|
@ -9264,21 +9264,15 @@ static BOOL LISTVIEW_Update(LISTVIEW_INFO *infoPtr, INT nItem)
|
||||||
*/
|
*/
|
||||||
static BOOL LISTVIEW_DrawTrackLine(const LISTVIEW_INFO *infoPtr)
|
static BOOL LISTVIEW_DrawTrackLine(const LISTVIEW_INFO *infoPtr)
|
||||||
{
|
{
|
||||||
HPEN hOldPen;
|
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
INT oldROP;
|
|
||||||
|
|
||||||
if (infoPtr->xTrackLine == -1)
|
if (infoPtr->xTrackLine == -1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!(hdc = GetDC(infoPtr->hwndSelf)))
|
if (!(hdc = GetDC(infoPtr->hwndSelf)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
hOldPen = SelectObject(hdc, GetStockObject(BLACK_PEN));
|
PatBlt( hdc, infoPtr->xTrackLine, infoPtr->rcList.top,
|
||||||
oldROP = SetROP2(hdc, R2_XORPEN);
|
1, infoPtr->rcList.bottom - infoPtr->rcList.top, DSTINVERT );
|
||||||
MoveToEx(hdc, infoPtr->xTrackLine, infoPtr->rcList.top, NULL);
|
|
||||||
LineTo(hdc, infoPtr->xTrackLine, infoPtr->rcList.bottom);
|
|
||||||
SetROP2(hdc, oldROP);
|
|
||||||
SelectObject(hdc, hOldPen);
|
|
||||||
ReleaseDC(infoPtr->hwndSelf, hdc);
|
ReleaseDC(infoPtr->hwndSelf, hdc);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue