[PATCH 2/2] Defined missing macro ListView_GetCheckState
Michael James
james.me at gmail.com
Mon Jan 26 16:49:33 CST 2009
---
include/commctrl.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/commctrl.h b/include/commctrl.h
index 426d70a..9cea03c 100644
--- a/include/commctrl.h
+++ b/include/commctrl.h
@@ -3715,6 +3715,8 @@ typedef struct NMLVSCROLL
SNDMSGA(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEMA)&_LVi);}
#define ListView_GetItemState(hwnd,i,mask) \
(BOOL)SNDMSGA((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask))
+#define ListView_GetCheckState(hwnd,i) \
+ ((ListView_GetItemState(hwnd,i,LVIS_STATEIMAGEMASK)>>12)-1)
#define ListView_GetCountPerPage(hwnd) \
(BOOL)SNDMSGW((hwnd),LVM_GETCOUNTPERPAGE,0,0L)
#define ListView_GetImageList(hwnd,iImageList) \
--
1.6.1
More information about the wine-patches
mailing list