Partager via


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

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](/windows/win32/api/combaseapi/nf-combaseapi-cocreateinstance) Call [CoCreateInstance](/windows/win32/api/combaseapi/nf-combaseapi-cocreateinstance) with the class identifier InkDesktopHost.
C++
CoCreateInstance(__uuidof(InkDesktopHost), 
  nullptr, 
  CLSCTX_INPROC_SERVER, 
  IID_PPV_ARGS(&_spInkHost));

 

Requirements

Minimum supported client
Windows 10 [desktop apps only]
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