IE_SETDRAWOPTS

Sets the ink drawing option.

Parameters

wParam

Contains the drawing option.

Constant

Description

IEDO_FAST

Drawing is done as fast as possible. This is the default setting.

IEDO_NONE

No drawing is done (disabled drawing).

IEDO_SAVEUPSTROKES

Save pen-up strokes in the HPENDATA object.

 

lParam

Not used; must be 0.

Return Value

Returns IER_OK if successful; the previous draw option is returned in the high-order word; otherwise, returns one of the following:

Constant

Description

IER_PARAMERR

wParam or lParam is invalid.

IER_OWNERDRAW

The control is an owner-draw control; setting draw options is invalid.

IER_SECURITY

The control has security protection disallowing the operation.

 

Comments

Unlike using the WM_SETREDRAW message, IEDO_NONE controls only the drawing of the ink. The control s background, grid lines, and so forth are redrawn as usual. By default, pen-up strokes are not saved in the HPENDATA object.