summaryrefslogtreecommitdiff
path: root/plugins/Clist_mw/src/clcpaint.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-24 15:21:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-24 15:21:30 +0000
commit5e01c907bf4cace9542f880bae418f71c0fd0c07 (patch)
tree4e8b60aa99bcc10540be4b0ca09bcb313ff78677 /plugins/Clist_mw/src/clcpaint.cpp
parent4a4b816398add26a704f13af1aa2ff5023df01af (diff)
more warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6608 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_mw/src/clcpaint.cpp')
-rw-r--r--plugins/Clist_mw/src/clcpaint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_mw/src/clcpaint.cpp b/plugins/Clist_mw/src/clcpaint.cpp
index b08e989b06..f6bd3e34c4 100644
--- a/plugins/Clist_mw/src/clcpaint.cpp
+++ b/plugins/Clist_mw/src/clcpaint.cpp
@@ -154,7 +154,7 @@ void InternalPaintClc(HWND hwnd,struct ClcData *dat,HDC hdc,RECT *rcPaint)
RECT testrc;
// yes I know about GetSysColorBrush()
- COLORREF tmpbkcolour = style&CLS_CONTACTLIST ? ( /*dat->useWindowsColours ? GetSysColor(COLOR_3DFACE) :*/ dat->bkColour ) : dat->bkColour;
+ COLORREF tmpbkcolour = dat->bkColour;
if (dat->greyoutFlags & pcli->pfnClcStatusToPf2(status) || style&WS_DISABLED) grey = 1;
else if (GetFocus() != hwnd && dat->greyoutFlags&GREYF_UNFOCUS) grey = 1;
@@ -373,7 +373,7 @@ void InternalPaintClc(HWND hwnd,struct ClcData *dat,HDC hdc,RECT *rcPaint)
SetHotTrackColour(hdcMem,dat);
//checkboxes
- if (checkboxWidth && (subindex == -1 ||1)) {
+ if (checkboxWidth) {
RECT rc;
HANDLE hTheme = OpenThemeData(hwnd,L"BUTTON");
@@ -473,7 +473,7 @@ void InternalPaintClc(HWND hwnd,struct ClcData *dat,HDC hdc,RECT *rcPaint)
rc.top = y+((dat->rowHeight-fontHeight)>>1);
rc.bottom = rc.top+dat->rowHeight;
rc.right = clRect.right;
- if (Drawing->type = CLCIT_CONTACT)
+ if (Drawing->type == CLCIT_CONTACT)
if (hottrack)
ChangeToFont(hdcMem,dat,FONTID_CONTACTSHOVER,&fontHeight);