IInkOverlay::get_AttachMode method (msinkaut.h)

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.


HRESULT get_AttachMode(
  InkOverlayAttachMode *AttachMode



Return value



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.


Minimum supported client Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header msinkaut.h
Library InkObj.dll

See also

Enabled Property


InkOverlay Class

InkOverlayAttachMode Enumeration