Mikołaj Zalewski : comctl32: listview: Store the iSubItem in header's lParam in LVM_INSERTCOLUMN.
Module: wine Branch: refs/heads/master Commit: 700dd456e9f342769877451f93992148f8387f6a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=700dd456e9f342769877451f... Author: Mikołaj Zalewski <mikolaj(a)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,
participants (1)
-
Alexandre Julliard