"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Class: CMouseInfo
Manage the mouse and its properties
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the CMouseInfo class
|
|
Buttons
|
Property
|
Gets the number of mouse buttons
|
|
CursorHeight
|
Property
|
Gets the height of the mouse cursor
|
|
CursorWidth
|
Property
|
Gets the width of the mouse cursor
|
|
DoubleClickHeight
|
Property
|
Gets the height of the double click area
This property is the height, in pixels, of the rectangle in which two mouse clicks will be considered a double click. The first and second mouse clicks must both occur in this rectangle.
|
|
DoubleClickSpeed
|
Property
|
Gets the double click speed.
A double click occurs when there are two clicks of a mouse button, the second occurring within a given time of the first. This property is the maximum time, in milliseconds, that can elapse between the first and second click, and still be considered a double click.
|
|
DoubleClickWidth
|
Property
|
Gets the width of the double click area.
This property is the width, in pixels, of the rectangle in which two mouse clicks will be considered a double click. The first and second mouse clicks must both occur in this rectangle.
|
|
DragHeight
|
Property
|
Gets the height of the drag area.
This property is the height, in pixels, of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins. This allows the user to click and release the mouse button easily without unintentionally starting a drag operation.
|
|
DragWidth
|
Property
|
Gets the width of the drag area.
This property is the width, in pixels, of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins. This allows the user to click and release the mouse button easily without unintentionally starting a drag operation.
|
|
MousePresent
|
Property
|
Returns the status of a mouse.
|
|
MouseSpeed
|
Property
|
Gets the mouse speed
This property can have the values 0 through 2. This property represents the speed of the mouse cursor relative to the distance the mouse has moved. This property works in conjunction with the MouseThreshold1 and MouseThreshold2 properties.
At regular intervals, windows checks the position of the mouse. If the current position varies from the last distance by more than the value specified in MouseThreshold1, windows doubles the distance the mouse has moved. If the current position varies from the last distance by more than the value specified in MouseThreshold2, windows doubles the distance yet again. It is therefore possible for windows to multiply the mouse distance by up to four times. All measurements are in pixels.
|
|
MouseThreshold1
|
Property
|
Gets the mouse threshold 1 value
This property can have the values 0 through 12. This property works in conjunction with the MouseSpeed and MouseThreshold2 properties.
At regular intervals, windows checks the position of the mouse. If the current position varies from the last distance by more than the value specified in MouseThreshold1, windows doubles the distance the mouse has moved. If the current position varies from the last distance by more than the value specified in MouseThreshold2, windows doubles the distance yet again. It is therefore possible for windows to multiply the mouse distance by up to four times. All measurements are in pixels.
|
|
MouseThreshold2
|
Property
|
Gets the mouse threshold 2 value
|
|
MouseTrails
|
Property
|
Gets the status of MouseTrails
|
|
SnapToDefault
|
Property
|
Gets the status of the SnapToDefault property
|
|
SwapButtons
|
Property
|
Returns whether the mouse buttons are swapped
|
|
WheelLines
|
Property
|
Gets the number of lines to scroll when the mouse wheel is rotated
|
|
WheelPresent
|
Property
|
Returns the presence of a mouse wheel
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|