diff options
Diffstat (limited to 'plugins/Clist_nicer/src/clcidents.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/clcidents.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/plugins/Clist_nicer/src/clcidents.cpp b/plugins/Clist_nicer/src/clcidents.cpp index 228cccae1d..bf2200cec5 100644 --- a/plugins/Clist_nicer/src/clcidents.cpp +++ b/plugins/Clist_nicer/src/clcidents.cpp @@ -48,7 +48,7 @@ int FindItem(HWND hwnd, struct ClcData *dat, HANDLE hItem, ClcContact **contact, ClcGroup *group = &dat->list;
group->scanIndex = 0;
- for (; ;) {
+ for (;;) {
if (group->scanIndex == group->cl.count) {
ClcGroup *tgroup;
group = group->parent;
@@ -56,7 +56,7 @@ int FindItem(HWND hwnd, struct ClcData *dat, HANDLE hItem, ClcContact **contact, break;
nowVisible = 1;
for (tgroup = group; tgroup; tgroup = tgroup->parent) {
- if ( !(group->expanded)) {
+ if (!(group->expanded)) {
nowVisible = 0; break;
}
}
@@ -65,23 +65,19 @@ int FindItem(HWND hwnd, struct ClcData *dat, HANDLE hItem, ClcContact **contact, }
if (nowVisible)
index++;
- if ((IsHContactGroup(hItem) && group->cl.items[group->scanIndex]->type == CLCIT_GROUP && ((UINT_PTR) hItem & ~HCONTACT_ISGROUP) == group->cl.items[group->scanIndex]->groupId) ||
- (IsHContactContact(hItem) && group->cl.items[group->scanIndex]->type == CLCIT_CONTACT && group->cl.items[group->scanIndex]->hContact == (MCONTACT)hItem) ||
- (IsHContactInfo(hItem) && group->cl.items[group->scanIndex]->type == CLCIT_INFO && group->cl.items[group->scanIndex]->hContact == (MCONTACT)((UINT_PTR) hItem & ~HCONTACT_ISINFO)))
- {
+ if ((IsHContactGroup(hItem) && group->cl.items[group->scanIndex]->type == CLCIT_GROUP && ((UINT_PTR)hItem & ~HCONTACT_ISGROUP) == group->cl.items[group->scanIndex]->groupId) ||
+ (IsHContactContact(hItem) && group->cl.items[group->scanIndex]->type == CLCIT_CONTACT && group->cl.items[group->scanIndex]->hContact == (MCONTACT)hItem) ||
+ (IsHContactInfo(hItem) && group->cl.items[group->scanIndex]->type == CLCIT_INFO && group->cl.items[group->scanIndex]->hContact == (MCONTACT)((UINT_PTR)hItem & ~HCONTACT_ISINFO))) {
if (isVisible) {
- if ( !nowVisible)
+ if (!nowVisible)
*isVisible = 0;
else {
- int posy = RowHeight::getItemTopY(dat,index+1);
- if (posy<dat->yScroll)
- *isVisible=0;
- //if ((index + 1) * dat->rowHeight< dat->yScroll)
- // *isVisible = 0;
+ int posy = RowHeight::getItemTopY(dat, index + 1);
+ if (posy < dat->yScroll)
+ *isVisible = 0;
else {
RECT clRect;
GetClientRect(hwnd, &clRect);
- //if (index * dat->rowHeight >= dat->yScroll + clRect.bottom)
if (posy >= dat->yScroll + clRect.bottom)
*isVisible = 0;
else
|