Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
tom87

Hide some icons on desktop...

2 posts in this topic

Hi !

I'm trying to allow a XP/Vista user to hide some icons on his desktop, by an utility program, written in C.

I have access to the desktop syslistview32 but I don't know what to do now.

This kind of control doesn't seem to be able to hide some of its items.

I've tried to change the attributes of the shortcut file, but it don't work on All users' icons, and doesn't work if the user told explorer to show hidden files.

My idea, for the moment, is to hide the desktop window (the listview), and to create mine, child of the "Progman" window.

The problem : I don't know if it's a good way to work, nor if it's compatible with Vista...

An example of what I'd like to do : hide the Visual Studio desktop icon, let the user put another icon on the Visual Studio icon position and then go back to the old state.

If you have any idea, please tell me !

Thanks for answers :thumbup

Tom

0

Share this post


Link to post
Share on other sites

I've tried some functions, and I've found how to hide an icon on the desktop.

I just have to send a LVM_DELETEITEM to the desktop ListView.

The problem is that it is visible again after a manual refresh of the desktop (F5 or right clic->Refresh).

Moreover, I have to be able to set the visibility of icons as I want; but if I call LVM_DELETEITEM, I don't know how to re-create the icon (the most important : does it have some information about the file pointed by the shortcut ?).

Thanks for help :hello:

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.