Compartilhar via


InkCanvas Window Messages

4/8/2010

This section contains the Window Messages used by the InkCanvas control.

Message Description

ICM_GETMODE

Returns the current editing mode – inking, selection or eraser.

ICM_SETMODE

Sets the editing mode.

ICM_GETINK

Returns a reference to the ink object.

ICM_GETINKDATA

Returns the ink data.

ICM_GETINKDATAASBITMAP

Returns the ink data as a bitmap.

ICM_LOADINKDATA

Loads the supplied ink data.

ICM_CLEARCANVAS

Clears the canvas.

ICM_GETPENSTYLE

Returns the current pen style.

ICM_SETPENSTYLE

Set the pen style.

ICM_SETBKGNDCOLOR

Sets the background color.

ICM_CANCOPY

Returns if data can be copied to the clipboard.

ICM_CANPASTE

Returns if data can be pasted from the clipboard.

ICM_CANUNDO

Returns if an action can be undone.

ICM_CANREDO

Returns if an action can be redone.

ICM_GETZOOM

Returns the current zoom level.

ICM_SETZOOM

Sets the current zoom level.

ICM_GETCANVASSIZE

Returns the current canvas size.

ICM_SETCANVASSIZE

Sets the canvas size.

ICM_REDO

Redoes the last undo action.

ICM_UNDO

Undoes the last action that can be undone.

ICM_SETCANVASCOLOR

Sets the canvas color.

ICM_ERASEALLINK

Erases all of the ink on the canvas.

ICM_SETAUTOSCROLL

Sets the autoscroll property of the canvas.

ICM_SETAUTOEXPAND

Sets the autoexpand property of the canvas.

ICM_GETUNDOCOUNT

Returns the number of actions that can be undone.

ICM_GETNOTIFICATIONMASK

Returns the current notification mask.

ICM_SETNOTIFICATIONMASK

Sets the mask for notifications that have to be received.

The following Windows Mobile messages are also used.

Method Description

WM_COPY

Copies data to the clipboard.

WM_CUT

Cuts the data to the clipboard.

WM_PASTE

Pastes data from the clipboard.

See Also

Concepts

Windows Mobile Ink Reference