다음을 통해 공유


InkDesktopHost class

Implements the IInkDesktopHost interface.

An IInkDesktopHost object enables ink input, processing, and rendering through the creation of an app thread to host an IInkPresenterDesktop object and insert it into the app's DirectComposition visual tree.

Members

The InkDesktopHost class inherits from the IUnknown interface. InkDesktopHost also has these types of members:

  • Methods

Methods

The InkDesktopHost class has these methods.

Method Description
CreateAndInitializeInkPresenter

Creates an IInkPresenterDesktop object on an application thread, connects it to the app's DirectComposition visual tree, and sets the size of the object.

CreateInkPresenter

Creates an IInkPresenterDesktop object on an application thread.

QueueWorkItem

Add an ink operation to a work queue for execution on the InkDesktopHost thread.

 

Creation\Access Functions

Use the following to retrieve a reference to the object:

CoCreateInstance

Call CoCreateInstance with the class identifier InkDesktopHost.

CoCreateInstance(__uuidof(InkDesktopHost), 
  nullptr, 
  CLSCTX_INPROC_SERVER, 
  IID_PPV_ARGS(&_spInkHost));

 

Requirements

Minimum supported client

Windows 10

Minimum supported server

None supported

Header

InkPresenterDesktop.h

IDL

InkPresenterDesktop.idl

IID

IID_IInkDesktopHost is defined as 4ce7d875-a981-4140-a1ff-ad93258e8d59

See also

Ink presenter classes

Pen and stylus interactions

Samples

Ink sample

Simple ink sample

Complex ink sample