MFC Support for Direct2D – Multithreading
As shown in previous articles, we can enable MFC Direct2D support for a window by a call of CWnd::EnableD2DSupport. Example: int CSlideShowWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CWnd::OnCreate(lpCreateStruct) == -1) return -1; // Enable MFC Direct2D support EnableD2DSupport(); // … return 0; } So far so good as long as all windows which use Direct2D are running … Read more