subcalls.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MouGetNumMickeys (1.2)
Overview                                            Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_MOU
 
USHORT MouGetNumMickeys(pusMickeys, hmou)
PUSHORT pusMickeys;    /* address of variable for mickeys per centimeter */
HMOU hmou;             /* mouse handle                                   */
 
The MouGetNumMickeys function retrieves the number of mickeys that the
specified mouse travels for each centimeter of motion. A mickey is the
smallest unit of motion a mouse can measure. The number of mickeys per
centimeter for a mouse depends on the device and may also depend on the
current setting of the device.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
pusMickeys  Points to the variable that receives the number of mickeys per
            centimeter.
 
hmou        Identifies the mouse. The handle must have been created
            previously by using the MouOpen function.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be the following:
 
     ERROR_MOUSE_NO_DEVICE
 
Example
 
This example creates a mouse handle then calls the MouGetNumMickeys function
to retrieve the current number of mickeys per centimeter:
 
HMOU hmou;
USHORT usMickeys;
MouOpen (0L, &hmou);
MouGetNumMickeys(&usMickeys, hmou);
 
See Also
 
MouOpen