Jason Zander put together a reference application “Image Viewer” that shows how to enable some cool Windows 7 features in your XP or Vista applications with relatively little effort and without sacrificing backward compatibility. You can download the application and source code here.