Show Desktop Node in ExplorerTree/List

Just starting out? Need help? Post your questions and find answers here.
POedBoy
New User
New User
Posts: 8
Joined: Tue Jun 01, 2004 9:31 pm
Location: La Verne, CA, USA

Show Desktop Node in ExplorerTree/List

Post by POedBoy »

Am I just being thick here?

I don't see a "built in" way of having the users desktop show up in either the explorer treeview or list gadgets. Is there any way around this within pure? And how would this be done using win32? I'm looking around on msdn, but I feel like I'm going around in circles :/

If anyone can help, it would be greatly appreciated :)
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

You won't find anything around msdn, because this gadget is selfmade.
There is no win32 control like that.
The desktop as a seperate item is not supported. Only MyDocuments is.

However, you should be able to get the location of the users desktop
folder on disk and display that with SetGadgetText(). Search for
"SHGetSpecialFolderPath" or "SHGetSpecialFolderLocation" here in the forum.

Timo
quidquid Latine dictum sit altum videtur
Post Reply