summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-28 10:25:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-28 10:25:53 +0000
commit01433b81e943d57b1ec2ebb5758bd2a85d836753 (patch)
treeb91d37e863c641413ae812280db6c0536c507fe1
parented66ac7da13f746d05ed832cf1d6d84cecb18b22 (diff)
we don't redraw invisible contacts
git-svn-id: http://svn.miranda-ng.org/main/trunk@16784 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Clist_modern/src/modern_clcmsgs.cpp11
-rw-r--r--src/mir_app/src/clcmsgs.cpp6
2 files changed, 4 insertions, 13 deletions
diff --git a/plugins/Clist_modern/src/modern_clcmsgs.cpp b/plugins/Clist_modern/src/modern_clcmsgs.cpp
index 6748c9eaa4..8a654ba13f 100644
--- a/plugins/Clist_modern/src/modern_clcmsgs.cpp
+++ b/plugins/Clist_modern/src/modern_clcmsgs.cpp
@@ -209,17 +209,6 @@ LRESULT cli_ProcessExternalMessages(HWND hwnd, ClcData *dat, UINT msg, WPARAM wP
pcli->pfnEnsureVisible(hwnd, dat, dat->selection, 0);
}
return 0;
-
- case CLM_SETEXTRAIMAGE:
- if (LOWORD(lParam) >= dat->extraColumnsCount)
- return 0;
-
- if (!pcli->pfnFindItem(hwnd, dat, wParam, &contact, NULL, NULL))
- return 0;
-
- contact->iExtraImage[LOWORD(lParam)] = HIWORD(lParam);
- pcli->pfnInvalidateRect(hwnd, NULL, FALSE);
- return 0;
}
return corecli.pfnProcessExternalMessages(hwnd, dat, msg, wParam, lParam);
}
diff --git a/src/mir_app/src/clcmsgs.cpp b/src/mir_app/src/clcmsgs.cpp
index 04cadc8fb1..762bbc8965 100644
--- a/src/mir_app/src/clcmsgs.cpp
+++ b/src/mir_app/src/clcmsgs.cpp
@@ -339,11 +339,13 @@ LRESULT fnProcessExternalMessages(HWND hwnd, struct ClcData *dat, UINT msg, WPAR
case CLM_SETEXTRAIMAGE:
if (LOWORD(lParam) < dat->extraColumnsCount) {
- if (!cli.pfnFindItem(hwnd, dat, wParam, &contact, NULL, NULL))
+ int bVisible;
+ if (!cli.pfnFindItem(hwnd, dat, wParam, &contact, NULL, &bVisible))
return 0;
contact->iExtraImage[LOWORD(lParam)] = HIWORD(lParam);
- cli.pfnInvalidateRect(hwnd, NULL, FALSE);
+ if (bVisible)
+ cli.pfnInvalidateRect(hwnd, NULL, FALSE);
}
break;