IInkPresenterDesktop::SetRootVisual method (inkpresenterdesktop.h)

Sets the connection to the app's DirectComposition visual tree.

Syntax

HRESULT SetRootVisual(
  [in] IUnknown *rootVisual,
  [in] IUnknown *device
);

Parameters

[in] rootVisual

The app's DirectComposition visual tree.

[in] device

NULL for default ink rendering, or an IDCompositionDevice3 object used to commit all pending DirectComposition commands for custom drying of ink input to the app's DirectComposition visual tree.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header inkpresenterdesktop.h

See also

Complex ink sample

IInkPresenterDesktop

Pen and stylus interactions

Samples

Complex Ink sample

Simple ink sample