pty property

Microsoft Visio Developer Reference

pty property

See also   Example   

Gets or sets the pt.y field of the MSG structure being wrapped.

Version added

2002

Syntax

intRet = object.pty
object.pty = intExpression

intRet

Long. The y-coordinate of the cursor position when this message was posted.

object

Required. An expression that returns a MSGWrap object.

intExpression

Required Long. The new value of the pt.y field.

Remarks

The pty property corresponds to the pt.y field in the MSG structure defined as part of the Microsoft Windows operating system. If an event handler is handling the OnKeystrokeMessageForAddon event, Visio passes a MSGWrap object as an argument when this event fires. A MSGWrap object is a wrapper around the Windows MSG structure.

For details, search for "MSG structure" on the Microsoft Developer Network (MSDN) Web site.