Commit 700dd456 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

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

parent 74c3b366
......@@ -6545,6 +6545,16 @@ static INT LISTVIEW_InsertColumnT(LISTVIEW_INFO *infoPtr, INT nColumn,
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment