Version: |
1.2 |
Description: |
Retrieves the position the user has moved the mouse to within the drawing area. Used with VCSetAlertApp. |
Declaration: |
|
C/C++ |
extern "C" void WINAPI VCGetUserToolMouseMove(short* iError, Point2D* dpP); |
Delphi |
procedure VCGetUserToolMouseMove(var iError: Smallint; var dpP: Point2D); stdcall; |
ActiveX/COM |
Function GetUserToolMouseMove() As IVCPoint2D |
Parameters: |
dpP - set to reflect the last drawing coordinates picked by the user. |
Notes: |
Once mouse move messaging has been established with VCSetAlertApp, VCGetUserToolMouseMove allows each mouse movement to be retrieved from Visual CADD™. For example, in Visual BASIC, the hWnd for the main form can be passed to VCSetAlertApp with 0 as the iCode. Code can be added to the mouse move event of the form. Each time the mouse is moved in the Visual CADD™ drawing area, a windows message will be sent to the form which will activate the form1_mousemove subroutine. In this subroutine, VCGetUserToolMouseMove can be used to retrieve the point that the mouse last moved over and code can be executed when the mouse passes over a certain region of the drawing. Be aware that processing additional code in an external application can require a great deal of processor overhead. Make sure that this is truly necessary before building code that uses this message. |
See Also: |