Search
FlowChart.ClientPtToDocPt Method
See Also
 



Transforms points from the client coordinate space to the document coordinate space.

 Syntax

VB6  Copy Code

Public Sub ClientPtToDocPt( _
    ByVal x As Long, _
    ByVal y As Long, _
    ByRef px As Long, _
    ByRef py As Long _
)

C++  Copy Code

public:
void ClientPtToDocPt (
    int x,
    int y,
    int* px,
    int* py
)

 Parameters

x
The x coordinate of the point in client coordinates.
y
The y coordinate of the point in client coordinates.
px
The x coordinate of the point in document coordinates.
py
The y coordinate of the point in document coordinates.

 Remarks

Gets the document coordinates of the point (x, y). The mapping between client (device) and document (logical) coordinates depends on the current scroll position and zoom factor. You can use this method together with ObjectFromPoint to find out which diagram item lies under the mouse cursor, when you have the mouse position expressed in device coordinates.

 See Also