Commit 6c915fb3 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

comctl32: Add ListView_SetCheckState and ListView_GetCheckState.

parent f55522ab
...@@ -137,7 +137,6 @@ ...@@ -137,7 +137,6 @@
* -- LVM_SORTGROUPS * -- LVM_SORTGROUPS
* *
* Macros: * Macros:
* -- ListView_GetCheckSate, ListView_SetCheckState
* -- ListView_GetHoverTime, ListView_SetHoverTime * -- ListView_GetHoverTime, ListView_SetHoverTime
* -- ListView_GetISearchString * -- ListView_GetISearchString
* -- ListView_GetNumberOfWorkAreas * -- ListView_GetNumberOfWorkAreas
......
...@@ -3724,6 +3724,11 @@ typedef struct NMLVSCROLL ...@@ -3724,6 +3724,11 @@ typedef struct NMLVSCROLL
SNDMSG(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEM)&_LVi);} SNDMSG(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEM)&_LVi);}
#define ListView_GetItemState(hwnd,i,mask) \ #define ListView_GetItemState(hwnd,i,mask) \
(UINT)SNDMSG((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask)) (UINT)SNDMSG((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask))
#define ListView_SetCheckState(hwndLV, i, bCheck) \
{ LVITEM _LVi; _LVi.state = INDEXTOSTATEIMAGEMASK((bCheck)?2:1); _LVi.stateMask = LVIS_STATEIMAGEMASK; \
SNDMSG(hwndLV, LVM_SETITEMSTATE, (WPARAM)(UINT)(i), (LPARAM)(LPLVITEM)&_LVi);}
#define ListView_GetCheckState(hwndLV, i) \
(((UINT)SNDMSG((hwndLV), LVM_GETITEMSTATE, (i), LVIS_STATEIMAGEMASK) >> 12) - 1)
#define ListView_GetCountPerPage(hwnd) \ #define ListView_GetCountPerPage(hwnd) \
(BOOL)SNDMSG((hwnd),LVM_GETCOUNTPERPAGE,0,0L) (BOOL)SNDMSG((hwnd),LVM_GETCOUNTPERPAGE,0,0L)
#define ListView_GetImageList(hwnd,iImageList) \ #define ListView_GetImageList(hwnd,iImageList) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment