ShellView_CreateList(), SIC_Initialize(): enable transparent icons on
the desktop.
This commit is contained in:
parent
87326ba7c3
commit
9d1c9604b1
|
@ -241,11 +241,11 @@ BOOL SIC_Initialize(void)
|
|||
return(FALSE);
|
||||
}
|
||||
|
||||
ShellSmallIconList = ImageList_Create(16,16,ILC_COLORDDB | ILC_MASK,0,0x20);
|
||||
ShellBigIconList = ImageList_Create(32,32,ILC_COLORDDB | ILC_MASK,0,0x20);
|
||||
ShellSmallIconList = ImageList_Create(16,16,ILC_COLOR32|ILC_MASK,0,0x20);
|
||||
ShellBigIconList = ImageList_Create(32,32,ILC_COLOR32|ILC_MASK,0,0x20);
|
||||
|
||||
ImageList_SetBkColor(ShellSmallIconList, GetSysColor(COLOR_WINDOW));
|
||||
ImageList_SetBkColor(ShellBigIconList, GetSysColor(COLOR_WINDOW));
|
||||
ImageList_SetBkColor(ShellSmallIconList, CLR_NONE);
|
||||
ImageList_SetBkColor(ShellBigIconList, CLR_NONE);
|
||||
|
||||
for (index=1; index<39; index++)
|
||||
{
|
||||
|
|
|
@ -314,6 +314,15 @@ static BOOL ShellView_CreateList (IShellViewImpl * This)
|
|||
This->ListViewSortInfo.nHeaderID = -1;
|
||||
This->ListViewSortInfo.nLastHeaderID = -1;
|
||||
|
||||
if (This->FolderSettings.fFlags & FWF_DESKTOP) {
|
||||
if (0) /* FIXME: look into registry vale HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ListviewShadow and activate drop shadows */
|
||||
ListView_SetTextBkColor(This->hWndList, CLR_NONE);
|
||||
else
|
||||
ListView_SetTextBkColor(This->hWndList, GetSysColor(COLOR_DESKTOP));
|
||||
|
||||
ListView_SetTextColor(This->hWndList, RGB(255,255,255));
|
||||
}
|
||||
|
||||
/* UpdateShellSettings(); */
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue