Define some ListView_* macros

Felix Nawothnig flexo at arara.de
Mon Sep 22 15:05:39 CDT 2003


Changelog:
   Adds definitions for ListView_GetColumnWidth, 
ListView_SetColumnWidth and ListView_RedrawItems

Index: include/commctrl.h
===================================================================
RCS file: /home/wine/wine/include/commctrl.h,v
retrieving revision 1.117
diff -u -r1.117 commctrl.h
--- include/commctrl.h  17 Sep 2003 20:15:21 -0000      1.117
+++ include/commctrl.h  22 Sep 2003 15:45:50 -0000
@@ -3350,6 +3350,10 @@
  #define ListView_SetColumnW(hwnd,x,col)\
      
(LRESULT)SNDMSGW((hwnd),LVM_SETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col))
  #define ListView_SetColumn WINELIB_NAME_AW(ListView_SetColumn)
+#define ListView_GetColumnWidth(hwnd,x)\
+    (INT)SNDMSGW((hwnd),LVM_GETCOLUMNWIDTH,(WPARAM)(INT)(x),0L)
+#define ListView_SetColumnWidth(hwnd,x,width)\
+    
(BOOL)SNDMSGW((hwnd),LVM_SETCOLUMNWIDTH,(WPARAM)(INT)(x),(LPARAM)(MAKELPARAM(width,0)))
    #define ListView_GetNextItem(hwnd,nItem,flags) \
@@ -3399,6 +3403,8 @@
      
(HIMAGELIST)(UINT)SNDMSGA((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(UINT)(HIMAGELIST)(himl))
  #define ListView_GetItemCount(hwnd) \
      (INT)SNDMSGA((hwnd),LVM_GETITEMCOUNT,0,0L)
+#define ListView_RedrawItems(hwnd,first,last) \
+    
(BOOL)SNDMSGA((hwnd),LVM_REDRAWITEMS,(WPARAM)(INT)(first),(LPARAM)(INT)(last))
   #define ListView_GetItemA(hwnd,pitem) \
      (BOOL)SNDMSGA((hwnd),LVM_GETITEMA,0,(LPARAM)(LVITEMA *)(pitem))



-flexo



More information about the wine-patches mailing list