Commit 6c7769e4 authored by Guy L. Albertelli's avatar Guy L. Albertelli Committed by Alexandre Julliard

Support images on the tabs of pages that are added (not just the

first).
parent 1c40426e
......@@ -1963,6 +1963,17 @@ static BOOL PROPSHEET_AddPage(HWND hwndDlg,
item.pszText = (LPWSTR) psInfo->proppage[psInfo->nPages].pszText;
item.cchTextMax = MAX_TABTEXT_LENGTH;
if (psInfo->hImageList)
{
SendMessageW(hwndTabControl, TCM_SETIMAGELIST, 0, (LPARAM)psInfo->hImageList);
}
if ( psInfo->proppage[psInfo->nPages].hasIcon )
{
item.mask |= TCIF_IMAGE;
item.iImage = psInfo->nPages;
}
SendMessageW(hwndTabControl, TCM_INSERTITEMW, psInfo->nPages + 1,
(LPARAM)&item);
......
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