|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| wincon.h
| Unicode
| No
| Platform Notes
| None
|
|
|
MOUSE_EVENT_RECORD
The MOUSE_EVENT_RECORD structure is used in a console INPUT_RECORD structure to report mouse input events.
typedef struct _MOUSE_EVENT_RECORD { // mer
COORD dwMousePosition;
DWORD dwButtonState;
DWORD dwControlKeyState;
DWORD dwEventFlags;
} MOUSE_EVENT_RECORD;
Members
dwMousePosition
Specifies the location of the cursor in terms of the screen buffer's
character-cell coordinates.
dwButtonState
Indicates the status of the mouse buttons. The least significant bit
corresponds to the leftmost mouse button. The next least significant bit corresponds to
the rightmost mouse button. The next bit indicates the next-to-leftmost mouse
button. The bits then correspond left to right to the mouse buttons. A bit is 1
if the button was pressed.
The following constants are defined for the first five mouse buttons:
FROM_LEFT_1ST_BUTTON_PRESSED
RIGHTMOST_BUTTON_PRESSED
FROM_LEFT_2ND_BUTTON_PRESSED
FROM_LEFT_3RD_BUTTON_PRESSED
FROM_LEFT_4TH_BUTTON_PRESSED
dwControlKeyState
Indicates the state of the control keys. This member can be a combination of
the following values:
Value
| Meaning
| RIGHT_ALT_PRESSED
| The right ALT key is pressed.
| LEFT_ALT_PRESSED
| The left ALT key is pressed.
| RIGHT_CTRL_PRESSED
| The right CTRL key is pressed.
| LEFT_CTRL_PRESSED
| The left CTRL key is pressed.
| CAPSLOCK_ON
| The CAPS LOCK light is on.
| ENHANCED_KEY
| The key is enhanced.
| NUMLOCK_ON
| The NUM LOCK light is on.
| SCROLLLOCK_ON
| The SCROLL LOCK light is on.
| SHIFT_PRESSED
| The SHIFT key is pressed.
|
dwEventFlags
Indicates the type of mouse event. If this value is zero, it indicates a mouse
button being pressed or released. Otherwise, the value is one of the
following:
Value
| Meaning
| DOUBLE_CLICK
| The second click (button press) of a double-click occurred. The first click is
returned as a regular button-press event.
| MOUSE_MOVED
| A change in mouse position occurred.
|
Remarks
Mouse events are placed in the input buffer when the console is in mouse mode
(ENABLE_MOUSE_INPUT).
Mouse events are generated whenever the user moves the mouse, or presses or
releases one of the mouse buttons. Mouse events are placed in a console's input
buffer only when the console group has the keyboard focus and the cursor is
within the borders of the console's window.
See Also
INPUT_RECORD, PeekConsoleInput, ReadConsoleInput, WriteConsoleInput
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|