MIL_ID EventId, | //in |
MIL_INT64 InfoType, | //in |
void *UserVarPtr | //out |
This function allows you to get information about the event that caused the hook-handler function to be called. MdispGetHookInfo() should only be called within the scope of a display hook-handler function (see MdispHookFunction()).
Specifies the display event identifier received by the hook-handler function (see MdispHookFunction()).
Specifies the type of information about the event to return.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the InfoType parameter and possible values returned to the UserVarPtr parameter.
If the hook-handler function was called due to an M_MOUSE_... event type, the InfoType parameter can be set to one of the values below.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For retrieving information regarding
mouse events
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_MOUSE_POSITION_BUFFER_X |
Retrieves the X-position of the cursor, in buffer coordinates. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-position of the cursor, in buffer coordinates. |
||||||||||||||||||||||||||||||||||||||
M_MOUSE_POSITION_BUFFER_Y |
Retrieves the Y-position of the cursor, in buffer coordinates. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-position of the cursor, in buffer coordinates. |
||||||||||||||||||||||||||||||||||||||
M_MOUSE_POSITION_X |
Retrieves the X-position of the cursor, in display coordinates. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-position of the cursor, in display coordinates. |
||||||||||||||||||||||||||||||||||||||
M_MOUSE_POSITION_Y |
Retrieves the Y-position of the cursor, in display coordinates. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-position of the cursor, in display coordinates. |
||||||||||||||||||||||||||||||||||||||
M_MOUSE_WHEEL_VALUE |
Retrieves the value for the mouse wheel's rotation. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the value for the mouse wheel's rotation. (more details...) |
If the hook-handler function was called due to an M_KEY_... event type, the InfoType parameter can be set to the value below.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For retrieving information regarding
keyboard events
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_KEY_VALUE |
Retrieves the ASCII value of the key that triggered the event. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies ASCII value of the key that triggered the event. |
If the hook-handler function was called due to either an M_KEY_... or M_MOUSE_... event type, the InfoType parameter can be set to the value below.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For retrieving information regarding
either a mouse or keyboard event
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_COMBINATION_KEYS |
Retrieves the combined value of keys or mouse buttons that triggered the event, if multiple keys or mouse buttons are used. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_KEY_CTRL |
Specifies the Ctrl key. |
||||||||||||||||||||||||||||||||||||||
M_KEY_SHIFT |
Specifies the Shift key. |
||||||||||||||||||||||||||||||||||||||
M_MOUSE_LEFT_BUTTON |
Specifies the left mouse button. |
||||||||||||||||||||||||||||||||||||||
M_MOUSE_MIDDLE_BUTTON |
Specifies the middle mouse button. |
||||||||||||||||||||||||||||||||||||||
M_MOUSE_RIGHT_BUTTON |
Specifies the right mouse button. |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll; mildisplay.dll. |