include: Add more ListView macros.

Remove duplicate ListView_GetGroupInfoByIndex at the same time.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2019-08-19 04:15:39 +00:00 committed by Alexandre Julliard
parent 21cadb7c0b
commit 448ba921be
1 changed files with 8 additions and 2 deletions

View File

@ -4190,8 +4190,14 @@ typedef struct tagLVITEMINDEX
((rc) ? (((RECT*)(rc))->top = type), (LPARAM)(RECT*)(rc) : (LPARAM)(RECT*)NULL)) ((rc) ? (((RECT*)(rc))->top = type), (LPARAM)(RECT*)(rc) : (LPARAM)(RECT*)NULL))
#define ListView_GetGroupCount(hwnd) \ #define ListView_GetGroupCount(hwnd) \
SNDMSG((hwnd), LVM_GETGROUPCOUNT, (WPARAM)0, (LPARAM)0) SNDMSG((hwnd), LVM_GETGROUPCOUNT, (WPARAM)0, (LPARAM)0)
#define ListView_GetGroupInfoByIndex(hwnd, index, grp) \ #define ListView_GetItemIndexRect(hwnd, index, subitem, code, prc) \
SNDMSG((hwnd), LVM_GETGROUPINFOBYINDEX, (WPARAM)(index), (LPARAM)(grp)) (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 *)&macro); }
#define ListView_GetNextItemIndex(hwnd, index, flags) \
(BOOL)SNDMSG((hwnd), LVM_GETNEXTITEMINDEX, (WPARAM)(LVITEMINDEX*)(index), MAKELPARAM((flags),0))
/* Tab Control */ /* Tab Control */