Transforms a point from device coordinates to the document coordinates.
VB6 Copy Code |
---|
Public Function ClientToDocX( _ |
C++ Copy Code |
---|
public: |
An integer value specifying the point's X position in logical coordinates.
Gets the document coordinates of the document point (x, y). The mapping between client (device) and document (logical) coordinates depends on the current scroll position and zoom factor. If you have the device coordinates of the mouse position, you can use this method together with GetBoxAt or GetTableAt to find out which diagram item lies under the mouse cursor.