MFC Support for Windows Animation

Let’s say we have to make a slide show presentation using Cross Fade effect. If the target system is Windows 10, that’s quite easy because Direct2D offers built-in Cross Fade effect. Cross Fade effect example void CAnimationWnd::Draw(CRenderTarget* pRenderTarget) { // get ID2D1DeviceContext interface; note: must include CComQIPtr<ID2D1DeviceContext> spDeviceContext = pRenderTarget->GetRenderTarget(); // create cross-fade effect; note include … Read more