From c0bffbb0025c911b4072bd906ab0b4a3864f4404 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 12 Jun 2012 11:27:53 +0000 Subject: Clist_mw highlight bug fix (patch from Awkward) git-svn-id: http://svn.miranda-ng.org/main/trunk@390 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Mwclist/clcpaint.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/Mwclist') diff --git a/plugins/Mwclist/clcpaint.cpp b/plugins/Mwclist/clcpaint.cpp index 498e597d31..952ef930f2 100644 --- a/plugins/Mwclist/clcpaint.cpp +++ b/plugins/Mwclist/clcpaint.cpp @@ -371,8 +371,10 @@ void InternalPaintClc(HWND hwnd,struct ClcData *dat,HDC hdc,RECT *rcPaint) //background if (selected) { + // default value - paint on text + int x=dat->leftMargin+indent*dat->groupIndent+checkboxWidth+dat->iconXSpace-2+subident; + ImageList_DrawEx(dat->himlHighlight,0,hdcMem,x,y,min(width+5,clRect.right-x),dat->rowHeight,CLR_NONE,CLR_NONE,dat->exStyle&CLS_EX_NOTRANSLUCENTSEL?ILD_NORMAL:ILD_BLEND25); SetTextColor(hdcMem,dat->selTextColour); - break; } else if (hottrack) SetHotTrackColour(hdcMem,dat); -- cgit v1.2.3