Export (0) Print
Expand All
Expand Minimize

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
);

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

Returns TRUE if D2D support was enabled, FALSE - otherwise

Header: afxwin.h

Show:
© 2014 Microsoft