InkCollector.hWnd property

Gets or sets the handle value of the window on which ink is drawn.

This property is read/write.

Syntax


HRESULT put_hWnd(
  [in]          long NewWindow
);

HRESULT get_hWnd(
  [out, retval] long *CurrentWindow
);

Property value

The pointer that specifies the handle value of the window on which ink is drawn.

The default value is NULL.

Error codes

NameMeaning
S_OK

Success.

E_POINTER

The hWnd parameter is an invalid pointer.

E_INK_EXCEPTION

An exception occurred inside the method.

Remarks

If two or more windows exist, this property allows you to specify which window collects ink.

Note  The InkCollector object or the InkOverlay object must be disabled before setting this property. To disable the InkCollector or InkOverlay objects, set the Enabled property to FALSE. You can then set the hWnd property and re-enable the object by setting the Enabled property to TRUE.
 

In Automation, this property is called hWnd Property.

Requirements

Minimum supported client

Windows XP Tablet PC Edition [desktop apps only]

Minimum supported server

None supported

Header

Msinkaut.h (also requires Msinkaut_i.c)

Library

InkObj.dll

See also

InkCollector Class
Enabled Property
InkDisp Class

 

 

Show: