summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clc.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-06 21:41:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-06 21:41:06 +0000
commitf11a71a26ce00c5fc5cdd4350b1303ed7bed9ad5 (patch)
tree797910f4c5f12392bc09ce90ae3099dc28a0385f /plugins/Clist_modern/src/modern_clc.h
parentf078926d87c9a272ec9588572d0ec1f53e9b1e2b (diff)
clist_modern:
- functions ContactToHItem & ContactToItemHandle replaced with their kernel implementations; - dat->row_heights array isn't used when the row height is constant; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@16809 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clc.h')
-rw-r--r--plugins/Clist_modern/src/modern_clc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.h b/plugins/Clist_modern/src/modern_clc.h
index 261724c0f9..f180bd53d9 100644
--- a/plugins/Clist_modern/src/modern_clc.h
+++ b/plugins/Clist_modern/src/modern_clc.h
@@ -330,6 +330,10 @@ struct ClcData : public ClcDataBase
XPTHANDLE hCheckBoxTheme;
BYTE bCompactMode;
+
+ __forceinline int getRowHeight(int iRow) const
+ { return (row_variable_height) ? row_heights[iRow] : rowHeight;
+ }
};
typedef struct tagOVERLAYICONINFO
@@ -347,8 +351,6 @@ void ClcOptionsChanged(void);
int cliGetRowsPriorTo(ClcGroup *group, ClcGroup *subgroup, int contactIndex);
int FindItem(HWND hwnd, ClcData *dat, DWORD hItem, ClcContact **contact, ClcGroup **subgroup, int *isVisible, BOOL isIgnoreSubcontacts);
int cliGetRowByIndex(ClcData *dat, int testindex, ClcContact **contact, ClcGroup **subgroup);
-HANDLE ContactToHItem(ClcContact *contact);
-HANDLE ContactToItemHandle(ClcContact *contact, DWORD *nmFlags);
//clcitems.c
void cliRebuildEntireList(HWND hwnd, ClcData *dat);