IE_GETINK

Retrieves the contents of an ink edit control.

Parameters

wParam

IEGI_ALL to get the entire ink, or IEGI_SELECTION to get only the selected ink.

lParam

Not used; must be 0.

Return Value

Returns the handle to the HPENDATA structure if successful; otherwise, returns one of the following:

 

Constant

Description

IER_PARAMERR

wParam or lParam is invalid.

IER_MEMERR

A memory error occurred.

IER_SECURITY

The control has security protection disallowing the operation.

IER_SELECTION

Nothing is selected in the control; operation assumes a selection.

 

Comments

The returned HPENDATA structure becomes the property of the application, which must eventually destroy it. This handle is a copy of the handle used internally by the control. An application cannot change the control by modifying the pen data referred to by this handle, although the modified handle can subsequently be used in an IE_SETINK call, which modifies the control s contents.

See Also

IE_SETINK