comctl32/listview: Support header images.

This commit is contained in:
Daniel Jelinski 2013-01-05 23:17:25 +01:00 committed by Alexandre Julliard
parent 8257ab9a76
commit bad62c0267
1 changed files with 6 additions and 0 deletions

View File

@ -1670,6 +1670,10 @@ static INT LISTVIEW_CreateHeader(LISTVIEW_INFO *infoPtr)
/* set header font */
SendMessageW(infoPtr->hwndHeader, WM_SETFONT, (WPARAM)infoPtr->hFont, TRUE);
/* set header image list */
if (infoPtr->himlSmall)
SendMessageW(infoPtr->hwndHeader, HDM_SETIMAGELIST, 0, (LPARAM)infoPtr->himlSmall);
LISTVIEW_UpdateSize(infoPtr);
return 0;
@ -8631,6 +8635,8 @@ static HIMAGELIST LISTVIEW_SetImageList(LISTVIEW_INFO *infoPtr, INT nType, HIMAG
himlOld = infoPtr->himlSmall;
infoPtr->himlSmall = himl;
if (infoPtr->uView != LV_VIEW_ICON) set_icon_size(&infoPtr->iconSize, himl, TRUE);
if (infoPtr->hwndHeader)
SendMessageW(infoPtr->hwndHeader, HDM_SETIMAGELIST, 0, (LPARAM)himl);
break;
case LVSIL_STATE: