'How does Windows 7 show the thumbnails of application in taskbar?

How does Windows 7 show the thumbnails of application in taskbar?

I can even see the movies in these thumbnails playing. Is it possible to do this with VC++?



Solution 1:[1]

The live thumbnail previews are created by the Desktop Window Manager.

Your application can get access to them by using the DwmRegisterThumbnail and DwmUpdateThumbnailProperties functions. For more information, see the DWM Thumbnail Overview at MSDN.

Solution 2:[2]

If you are using Visual Studio 2010 to create an MFC application, add the following call somewhere in the CWinApp::InitInstance() method:

EnableTaskbarInteraction(true);

That's all that is required to make your app's previews visible.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Bradley Grainger
Solution 2 Mark Taylor