![]() |
MKI_HookPositionProc (Callback) |
www.CAD6.com |
C++ Syntaxvoid MKI_HookPositionProc( __int32 f_nWindowNum, MKI_POINT_PTR f_pPosition );
typedef void (*MKI_HOOKPOSITION_PROC)( __int32 f_nWindowNum, MKI_POINT_PTR f_pPosition );
This callback procedure is called once each time the current cursor's position is changed.
ParametersWindowNum [__int32] Zero-based index of the drawing window that is responsible for the event. Valid range: 0 <= Value < MKI_WINDOW_MAX (standard windows) or Value = MKI_WINDOW_VIEW (view window). Position [MKI_POINT_PTR] Address of a point structure containing the cursor's new position in internal [mm] (relative to the page center, scale-independent). The plug-in may alter these values to force a special movement of the cursor. Both the cursor and the coordinate display will react accordingly. Anyway, be sure to use this possibility only if required, as another plug-in might also try to do so!
CommentA hook on cursor position calculation can be established and cancelled using the procedures MKI_HookPositionStart and MKI_HookPositionEnd.
The name MKI_HookPositionProc is only a placeholder, the procedure may have any name.
|
CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH