Mikołaj Zalewski : comctl32: listview: Store the iSubItem in header's lParam in LVM_INSERTCOLUMN.

Alexandre Julliard julliard at wine.codeweavers.com
Mon May 15 09:42:33 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 700dd456e9f342769877451f93992148f8387f6a
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=700dd456e9f342769877451f93992148f8387f6a

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Sat May 13 21:34:57 2006 +0200

comctl32: listview: Store the iSubItem in header's lParam in LVM_INSERTCOLUMN.

---

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

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 4878778..e57e584 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -6545,6 +6545,16 @@ static INT LISTVIEW_InsertColumnT(LISTVI
     
     ZeroMemory(&hdi, sizeof(HDITEMW));
     column_fill_hditem(infoPtr, &hdi, nColumn, lpColumn, isW);
+    
+    /*
+     * when the iSubItem is available Windows copies it to the header lParam. It seems
+     * to happen only in LVM_INSERTCOLUMN - not in LVM_SETCOLUMN
+     */
+    if (lpColumn->mask & LVCF_SUBITEM)
+    {
+        hdi.mask |= HDI_LPARAM;
+        hdi.lParam = lpColumn->iSubItem;
+    }
 
     /* insert item in header control */
     nNewColumn = SendMessageW(infoPtr->hwndHeader, 




More information about the wine-cvs mailing list