Tim Haughton
7/23/2007 8:01:00 AM
Thanks Jim, we already have the IShellItemImage factory stuff in their, but
it's kind of a document management application, so we need the preview stuff
as well - and it's a Vista only app.
Cheers,
Tim
"Jim Barry" <jim@mvps.org> wrote in message
news:OL2kpDtyHHA.3940@TK2MSFTNGP05.phx.gbl...
Tim Haughton wrote:
> Hi, I'm trying to implement a preview feature in a managed
> application to preview files of arbitrary type. Has anyone done this
> in a managed app? I've seen at least one suggestion that you can host
> prevhost on your form, but I'm not sure this is correct.
I suppose you could, but I think it would be rather hard work. Also, preview
handlers are new for Vista so it wouldn't be much use on previous versions.
If you just want a pictorial representation of a file, you could show a
thumbnail. On Vista, IShellItemImageFactory::GetImage makes this very easy.
On older Windows versions, you can fall back to GetUIObjectOf/IExtractImage.