Desktop icon delete problem on Windows 7
-
Hi All, I want to programmatically delete a particular desktop icon; I am doing this by using ListView_DeleteItem. But Windows 7 added LVS_OWNERDATA style to desktop's list view. MSDN says ListView_DeleteItem is supported for selection integrity only and does not actually delete an item but it deletes some other icon ignoring the index provided. Is there any other way to delete a particular desktop icon? I am looking for some other way than setting hidden attribute or moving an icon from desktop directory. Is it possible by using IShellFolderView::RemoveObject method? Thanks.
-
Hi All, I want to programmatically delete a particular desktop icon; I am doing this by using ListView_DeleteItem. But Windows 7 added LVS_OWNERDATA style to desktop's list view. MSDN says ListView_DeleteItem is supported for selection integrity only and does not actually delete an item but it deletes some other icon ignoring the index provided. Is there any other way to delete a particular desktop icon? I am looking for some other way than setting hidden attribute or moving an icon from desktop directory. Is it possible by using IShellFolderView::RemoveObject method? Thanks.
Which icon exactly? If it's one of the built-in icons, then you'll have better luck looking at the Group Policy editor. There's probably a setting in there to hide the icon.
--Mike-- Dunder-Mifflin, this is Pam
-
Which icon exactly? If it's one of the built-in icons, then you'll have better luck looking at the Group Policy editor. There's probably a setting in there to hide the icon.
--Mike-- Dunder-Mifflin, this is Pam
-
Thanks Mike but I am also looking for hiding icons created by user, anyways now I can at least hide built in icons. Thanks.
you can delete if you delete .lnk file from disk. for Desktop it is located in c:\Users\'YOUR ACCOUNT NAME'\Desktop Or if all accounts have same icon, it is located in: C:\Users\All Users\Desktop