Share via


AttachedEditWindow Property

AttachedEditWindow Property

Sets or gets the window handle of the object that the PenInputPanel object is attached to.

Declaration

[C++]

[propput] HRESULT AttachedEditWindow (
    [in] LONG_PTR AttachedEditWindow);
[propget] HRESULT AttachedEditWindow (
    [out, retval] LONG_PTR *AttachedEditWindow);

[Microsoft® Visual Basic® 6.0]

Public Property Get AttachedEditWindow() as IntPtr
Public Property Let AttachedEditWindow ( _
    theAttachedEditWindow as IntPtr)

Property Value

LONG_PTR The window handle of the object that the PenInputPanel object is attached to.

This property is read/write.

Return Value

HRESULT value Description
S_OK Success. The parameter contains the window handle of the control that the PenInputPanel is attached to.
E_INVALIDARG The parameter contains an invalid value.
E_FAIL An unspecified error occurred.

Remarks

The window handle of an object may change.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example creates a PenInputPanel object, thePenInputPanel, and attaches it to the window handle of an InkEdit control, InkEdit1, by setting the AttachedEditWindow property.

' Declare a new PenInputPanel object
Dim thePenInputPanel As PenInputPanel

' Create the PenInputPanel
Set thePenInputPanel = New PenInputPanel

' Attach the PenInputPanel to an InkEdit control
thePenInputPanel.AttachedEditWindow = InkEdit1.hWnd

Applies To