Alistair Leslie-Hughes : include: Add more ListView macros.
Alexandre Julliard
julliard at winehq.org
Mon Aug 19 15:35:11 CDT 2019
Module: wine
Branch: master
Commit: 448ba921be25e4c57d0d1eb597edccffba5589f3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=448ba921be25e4c57d0d1eb597edccffba5589f3
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Mon Aug 19 04:15:39 2019 +0000
include: Add more ListView macros.
Remove duplicate ListView_GetGroupInfoByIndex at the same time.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/commctrl.h | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/include/commctrl.h b/include/commctrl.h
index 906f2c3..700b335 100644
--- a/include/commctrl.h
+++ b/include/commctrl.h
@@ -4190,8 +4190,14 @@ typedef struct tagLVITEMINDEX
((rc) ? (((RECT*)(rc))->top = type), (LPARAM)(RECT*)(rc) : (LPARAM)(RECT*)NULL))
#define ListView_GetGroupCount(hwnd) \
SNDMSG((hwnd), LVM_GETGROUPCOUNT, (WPARAM)0, (LPARAM)0)
-#define ListView_GetGroupInfoByIndex(hwnd, index, grp) \
- SNDMSG((hwnd), LVM_GETGROUPINFOBYINDEX, (WPARAM)(index), (LPARAM)(grp))
+#define ListView_GetItemIndexRect(hwnd, index, subitem, code, prc) \
+ (BOOL)SNDMSG((hwnd), LVM_GETITEMINDEXRECT, (WPARAM)(LVITEMINDEX*)(index), \
+ (prc ? ((((LPRECT)prc)->top = subitem), (((LPRECT)prc)->left = code), (LPARAM)prc) : (LPARAM)NULL)
+#define ListView_SetItemIndexState(hwndLV, index, data, mask) \
+{ LV_ITEM macro; macro.stateMask = (mask); macro.state = data; \
+ SNDMSG((hwndLV), LVM_SETITEMINDEXSTATE, (WPARAM)(LVITEMINDEX*)(index), (LPARAM)(LV_ITEM *)¯o); }
+#define ListView_GetNextItemIndex(hwnd, index, flags) \
+ (BOOL)SNDMSG((hwnd), LVM_GETNEXTITEMINDEX, (WPARAM)(LVITEMINDEX*)(index), MAKELPARAM((flags),0))
/* Tab Control */
More information about the wine-cvs
mailing list