mirror of
https://github.com/reactos/wine.git
synced 2025-02-07 20:57:39 +00:00
Support images on the tabs of pages that are added (not just the
first).
This commit is contained in:
parent
1c40426e95
commit
6c7769e488
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user