From 9d1c9604b1fc5796b039a4a4e198cf5227540f83 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 18 Jan 2004 23:17:32 +0000 Subject: [PATCH] ShellView_CreateList(), SIC_Initialize(): enable transparent icons on the desktop. --- dlls/shell32/iconcache.c | 8 ++++---- dlls/shell32/shlview.c | 9 +++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/dlls/shell32/iconcache.c b/dlls/shell32/iconcache.c index 7a32361873..922b664c5b 100644 --- a/dlls/shell32/iconcache.c +++ b/dlls/shell32/iconcache.c @@ -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++) { diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index b6764fa6ee..8a7c08c961 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -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; } -- 2.32.0.93.g670b81a890