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

first).
This commit is contained in:
Guy L. Albertelli 2002-06-14 23:26:37 +00:00 committed by Alexandre Julliard
parent 1c40426e95
commit 6c7769e488
1 changed files with 11 additions and 0 deletions

View File

@ -1963,6 +1963,17 @@ static BOOL PROPSHEET_AddPage(HWND hwndDlg,
item.pszText = (LPWSTR) psInfo->proppage[psInfo->nPages].pszText; item.pszText = (LPWSTR) psInfo->proppage[psInfo->nPages].pszText;
item.cchTextMax = MAX_TABTEXT_LENGTH; 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, SendMessageW(hwndTabControl, TCM_INSERTITEMW, psInfo->nPages + 1,
(LPARAM)&item); (LPARAM)&item);