comctl32: Support LVCF_SUBITEM in LVM_GETCOLUMN.

This commit is contained in:
Lei Zhang 2008-06-19 14:48:58 -07:00 committed by Alexandre Julliard
parent 44afc4488c
commit 4700b0bd87
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}