InkOverlay.AttachMode property

Gets or sets the value that specifies whether the InkOverlay object is attached behind or in front of the known window.

This property is read/write.

Syntax


HRESULT put_AttachMode(
  [in]          InkOverlayAttachMode AttachMode
);

HRESULT get_AttachMode(
  [out, retval] InkOverlayAttachMode *AttachMode
);

Property value

The value that specifies whether the InkOverlay object is attached behind or in front of the known window.

ValueMeaning
Behind

Default. The InkOverlay object is attached behind the known window.

InFront

The InkOverlay object is attached in front of the known window.

 

Remarks

Note  An error occurs if the InkOverlay object is not disabled before setting this property. To disable the InkOverlay object, set the Enabled property to FALSE. You can then set the AttachMode property and re-enable the object by setting the Enabled property to TRUE.
 
Caution  If AttachMode is set to InFront and then a control is added to the InkOverlay's attached control, then you will have to reset the InkOverlay's hWnd. First set Enabled to FALSE, then set the hWnd property, and then set Enabled to TRUE.
 

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

InkOverlay Class
Enabled Property
InkOverlayAttachMode Enumeration

 

 

Show: