CWinApp::EnableD2DSupport
Visual Studio 2010 SP1 is required.
Enables application D2D support. Call this method before the main window is initialized.
BOOL EnableD2DSupport(
D2D1_FACTORY_TYPE d2dFactoryType = D2D1_FACTORY_TYPE_SINGLE_THREADED,
DWRITE_FACTORY_TYPE writeFactoryType = DWRITE_FACTORY_TYPE_SHARED
);
Parameters
d2dFactoryType
The threading model of the D2D factory and the resources it creates.writeFactoryType
A value that specifies whether the write factory object will be shared or isolated
Return Value
Returns TRUE if D2D support was enabled, FALSE - otherwise
Requirements
Header: afxwin.h