MFC: Implementing handlers for preview, thumbnail and search filtering

Sign in to queue


This is a short demonstration of new MFC features in MFC and ATL which help with integrating your application’s file type into Windows Explorer.  This is done by implementing handlers for preview, thumbnail and search filtering, all of which are implemented in an application generated by the MFC application wizard. Pat Brenner, MFC guru and one of the folks who design and implement MFC is your host.



Download this episode

The Discussion

  • User profile image

    Is it possible to register the preview and thumbnail handlers for multiple document templates?

    My MFC app has 4 file types.


    Thank you



  • User profile image
    Pat Brenner

    Hi Vaclav,


    It is possible to register handlers for multiple document templates.  If you have an existing MFC application you can do this by adding an ATL project to your solution and then adding ATL simple objects to create handlers for each of your document templates.


    I'm planning to do a video of this (adding handler support to an existing MFC application) soon, but thanks for the reminder.


    Pat Brenner

    Visual C++ Libraries Development

  • User profile image

    Hi Pat,


    Thank you for the quick response.

    I am looking forward to your next videos.




  • User profile image

    nice sharing pat,..

    thank you for your explanation..

    I'm waiting for the next Video,.

  • User profile image

    Thanks for share the problem,.

  • User profile image

    Hi all,
    I have to develop my first serious application in native code (Compact
    Framework has been excluded for several reasons) that should run over CE.NET
    4.2, PocketPC 2003 and future versions (and possibly also over SmartPhones).

    I wouldn't write code directly with Win APIs, I prefer to use a library such
    as MFC / ATL / WTL but I have several doubts such as:

    - I read that WTL is a good library, that runs also on SmartPhones, but does
    it run also on CE.NET 4.2 (and future version, such as 5.0), or I have to
    modify it?

    - MFC doesn't run on SmartPhones and is bigger than WTL, has it got some
    features so that I should prefer it over WTL?

    Can anybody give me some advice to choose the right library?

    comlandcomputerslanditcomputer computerslookup batch

  • User profile image

    I have to develop my first serious application in native code (Compact Framework has been excluded for several reasons) that should run over CE.NET

    Just curious what your reasons were for not using CF. I've played around with it and it seems kind of slow. I can't escape the feeling that using it will end up that the first 90% of the app was really easy to do in it and the last 10% darn near killed me or wasn't even possible.

  • User profile image

    LOL i literally asked the same exact question yesterday. I didnt realize MFC doesnt run on smartphones. Good to know. Even if i statically link the MFC it worn run on the smartphone os?

  • User profile image

    nice short demonstration,.


Add Your 2 Cents