![]() |



Function |
Declared in: NiGraphEvents.h |
Declaration
void OnMouseUp( short Button, short Shift, long x, long y);
Description
Generated when you release the mouse on the control.
Parameters
short Button
short Shift
long x
long y
Contains the state of the mouse buttons, which can be any combination of the CNiGraph::MouseButton enumeration values. The following list includes valid enumeration values.
- CNiGraph::LeftButton - the user pressed the left mouse button.
- CNiGraph::RightButton - the user pressed the right mouse button.
- CNiGraph::MiddleButton - the user pressed the middle mouse button.
Contains the state of the SHIFT, CTRL, and ALT keys, which can be any combination of the CNiGraph::ShiftKeys enumeration values. The following list includes valid enumeration values.
- CNiGraph::ShiftKey - the user pressed the SHIFT key.
- CNiGraph::CtrlKey - the user pressed the CTRL key.
- CNiGraph::AltKey - the user pressed the ALT key.
The x position of the mouse when the event occurred.
The y position of the mouse when the event occurred.
See Also
Example
void OnMouseUp(short Button, short Shift, long x, long y) { if ((X > 20 && Y < 100) && (Shift == CNiGraph::ShiftKey | CNiGraph::AltKey)) { // Your event code here. } }