Platform SDK Shell >> Property sheet for virtual items

by Alex » Sat, 02 Apr 2005 20:15:26 GMT

Hi all,

I am developing a shell folder NSE with multiple levels of virtual
folders. How do I show a property sheet for virtual items?

I have tried doing a ShellExecuteEx with a "properties" verb for a
fully qualified PIDL of my nested virtual item. I have also supplied a
class name which registered a property page handler in a similar
fashion as a "Folder" class. This all had no effect. I got an error
message box and ERROR_NO_ASSOCIATION in return.

Is this possible at all or do I have to show my own custom property
sheet? I have Googled up and down and found nothing, but if I am not
mistaken, IE's History folder seems to do this nicely.

--
Alex


Platform SDK Shell >> Property sheet for virtual items

by Jim Barry » Tue, 05 Apr 2005 02:40:17 GMT





IE's History folder shows a custom property sheet. You will need to do the same.

--
Jim Barry, MVP for Windows SDK



Platform SDK Shell >> Property sheet for virtual items

by Alex » Tue, 05 Apr 2005 05:43:43 GMT






Thanks! I thought I was doing something wrong. It turns out it is not
possible after all.

--
Alex


Property sheet for virtual items

by vbalerks » Tue, 05 Apr 2005 05:49:31 GMT

Hi Alex,

You can copy\paste some om my sample code I uploaded to codeproject
(msf090.zip). It shows how to implement a property sheet\page for an
item in a NSE. (and it shows how to enable XP style, which IE history
sheet\page doesn't do)

Victor


Property sheet for virtual items

by Alex » Tue, 05 Apr 2005 18:52:01 GMT





Thanks Victor,

If you uploaded it quite recently, I guess it needs some time to
appear. I have searched the site up and down and found nothing. Could
you please put it elsewhere at least temporarily? Thanks.

--
Alex


Property sheet for virtual items

by vbalerks » Wed, 06 Apr 2005 05:45:02 GMT

>

location on codeproject is http://www.codeproject.com/useritems/msf2.asp

location on my homepage is http://www.xs4all.nl/ ~vbaderks/msf.html

Version on homepage is newer


Property sheet for virtual items

by Alex » Wed, 06 Apr 2005 07:48:40 GMT





Unfortunately, your sample has proven that properties are left on the
NSE writer to handle. One cannot rely on a standard behavior, or at
least I have not yet found a way to. It turns out that even IE's
History folder as well as built-in browsing within ZIP files also show
a custom modal dialog box or a property sheet. I somehow thought that
calling ShellExecuteEx with a properly registered class would do the
trick...

Thanks Jim and Victor!

--
Alex