VCMouseMove


Version:

1.2

Description:

Used to send mouse movements to Visual CADD™.

Declaration:

 

C/C++

extern "C" void WINAPI VCMouseMove(long lParam, WORD wParam);

Delphi

procedure VCMouseMove(lParam: Longint; wParam: Smallint); stdcall;

ActiveX/COM

Sub MouseMove(ByVal lParam As Long, ByVal wParam As Integer)

Parameters:

lParam - a packed coordinate pair as used by Windows.
wParam
- passed by Windows functions to represent the identifier of the mouse message.

Notes:

All mouse subroutines as passed by Windows function pass the coordinate values through a lParam structure which contains the x and y coordinates and other pertinent information not used by Visual CADD™. Also included is a wParam which contains any modifiers to the mouse movement such as the state of the shift, ctrl, and alt keys. These may or may not be used by Visual CADD™ to modify the results of the mouse movements depending on the current context in the application. For example, holding the ctrl key while dragging objects toggles the state of the ortho mode.

The MFC Class Library in MS Visual C++ references mouse movements and points through a CPoint class structure. The macro MAKELPARAM can be used to convert the given CPoint structure to a LPARAM compatible with the Visual CADD™ API.

See Also:

VCMouseMoveWorldPoint, VCMouseMove2, VCGetUserToolMouseMove