![]() |



Function |
Declared in: NiGraph3DEvents.h |
Declaration
void OnCursorChange( long FAR* CursorIndex, double FAR* XPosition, double FAR* YPosition, double FAR* ZPosition, BOOL FAR* Tracking);
Description
Generated when you reposition a cursor with the mouse.
Note: This event is generated only if the graph's TrackMode property is set to CNiGraph::TrackZoomPanRotate or CNiGraph::TrackDragCursor.
Parameters
long FAR* CursorIndex
double FAR* XPosition
double FAR* YPosition
double FAR* ZPosition
BOOL FAR* Tracking
Contains the one-based index of the cursor generating the event.
Contains the x position of the cursor.
Contains the y position of the cursor.
Contains the z position of the cursor.
Contains true if the mouse button was down when the event occurred.
See Also
Example
void OnCursorChange(long FAR* CursorIndex, double FAR* XPos, double FAR* YPos, double FAR* ZPos, BOOL FAR* Tracking) { // Read and set the x, y and z cursor positions. m_xPos = *XPos; m_yPos = *YPos; m_zPos = *ZPos; }