# Tuesday, 27 April 2010

MFC had some Windows 7 support starting with the release in between Visual Studio 2008 and Visual Studio 2010. There was a ribbon, for example, though there was no designer. In Visual Studio 2010 there is a ribbon designer, very nice, and tons of UI fun as well. In this post I'd like to focus on some MFC support for taskbar interactions. Any idea what these two lines of code do?


Here's the visual evidence:

Yep, you load an icon and then you set it as an overlay icon on your taskbar. Nice and simple.

How about this:


You need to know that m_jumplist is a member variable of type CJumpList - a new type in MFC. Here's what that code causes:

This is remarkably little code to be all up to date and modern, isn't it?

If you want more info on C++ and Visual Studio 2010, here's a nice article by Sumit Kumar and a Channel 9 talk with Pat Brenner. Enjoy!


Tuesday, 27 April 2010 11:28:09 (Eastern Daylight Time, UTC-04:00)  #    Comments [2]
Thursday, 29 April 2010 09:53:41 (Eastern Daylight Time, UTC-04:00)
How strange - the MSDN documentation for VS Professional doesn't appear to contain CJumpList, even after updating it...

Does have SetTaskbarOverlayIcon, though.
Stuart Dootson
Thursday, 29 April 2010 09:57:29 (Eastern Daylight Time, UTC-04:00)
I see http://msdn.microsoft.com/en-us/library/ff598923.aspx online - not sure about the offline help you can install on your machine, I stopped using/trusting that years back.

Comments are closed.