Function ProMouseTrack
Description
Reports the current mouse position immediately, regardless of whether any buttons are pressed.
Replacement in Object TOOLKIT:
Synopsis
#include <ProGraphic.h>
ProMouseTrack
(
int options
/* (In)
The mouse tracking options. Supply one or more of the PRO_MOUSETRACK_OPT constants OR'd together for this argument. This bitmask allows you to track using grid snap, and also to allow viewing operations using the middle mouse button while tracking. If options is 0, the function returns the exact mouse coordinates while disabling all viewing operations (this is the usual type of call).
*/
ProMouseButton* button_pressed
/* (Out)
Specifies which mouse buttons were pressed.
*/
ProPoint3d position
/* (Out)
The logical window coordinates of the current mouse position.
*/
)
Returns
The function successfully retrieved the information.
The user aborted input.
A general error occurred and the function failed.
Sample Code References
User Guide References
¿Fue esto útil?