Lei Zhang : comctl32: Support LVCF_SUBITEM in LVM_GETCOLUMN.

Alexandre Julliard julliard at winehq.org
Sat Jun 21 05:39:17 CDT 2008


Module: wine
Branch: master
Commit: 4700b0bd876d4948a364dbd00ddda1def9febebc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4700b0bd876d4948a364dbd00ddda1def9febebc

Author: Lei Zhang <thestig at google.com>
Date:   Thu Jun 19 14:48:58 2008 -0700

comctl32: Support LVCF_SUBITEM in LVM_GETCOLUMN.

---

 dlls/comctl32/listview.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index ce909fe..5501d1f 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -5223,6 +5223,9 @@ static BOOL LISTVIEW_GetColumnT(const LISTVIEW_INFO *infoPtr, INT nColumn, LPLVC
     if (lpColumn->mask & LVCF_ORDER)
         hdi.mask |= HDI_ORDER;
 
+    if (lpColumn->mask & LVCF_SUBITEM)
+        hdi.mask |= HDI_LPARAM;
+
     if (!SendMessageW(infoPtr->hwndHeader, isW ? HDM_GETITEMW : HDM_GETITEMA, nColumn, (LPARAM)&hdi)) return FALSE;
 
     if (lpColumn->mask & LVCF_FMT)
@@ -5237,6 +5240,9 @@ static BOOL LISTVIEW_GetColumnT(const LISTVIEW_INFO *infoPtr, INT nColumn, LPLVC
     if (lpColumn->mask & LVCF_ORDER)
 	lpColumn->iOrder = hdi.iOrder;
 
+    if (lpColumn->mask & LVCF_SUBITEM)
+	lpColumn->iSubItem = hdi.lParam;
+
     return TRUE;
 }
 




More information about the wine-cvs mailing list