comctl32/listview: Support header images.
This commit is contained in:
parent
8257ab9a76
commit
bad62c0267
@ -1670,6 +1670,10 @@ static INT LISTVIEW_CreateHeader(LISTVIEW_INFO *infoPtr)
|
|||||||
/* set header font */
|
/* set header font */
|
||||||
SendMessageW(infoPtr->hwndHeader, WM_SETFONT, (WPARAM)infoPtr->hFont, TRUE);
|
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);
|
LISTVIEW_UpdateSize(infoPtr);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -8631,6 +8635,8 @@ static HIMAGELIST LISTVIEW_SetImageList(LISTVIEW_INFO *infoPtr, INT nType, HIMAG
|
|||||||
himlOld = infoPtr->himlSmall;
|
himlOld = infoPtr->himlSmall;
|
||||||
infoPtr->himlSmall = himl;
|
infoPtr->himlSmall = himl;
|
||||||
if (infoPtr->uView != LV_VIEW_ICON) set_icon_size(&infoPtr->iconSize, himl, TRUE);
|
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;
|
break;
|
||||||
|
|
||||||
case LVSIL_STATE:
|
case LVSIL_STATE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user