Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWinApp::EnableD2DSupport
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft