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.
MouGetScaleFact (1.2)
◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_MOU
USHORT MouGetScaleFact(pmouscFactors, hmou)
PSCALEFACT pmouscFactors; /* address of structure for scaling factors */
HMOU hmou; /* mouse handle */
The MouGetScaleFact function retrieves the horizontal and vertical scaling
factors for the specified mouse. The scaling factors define the number of
mickeys the mouse must travel horizontally or vertically in order to cause
MS OS/2 to move the mouse pointer one screen unit.
Parameter Description
────────────────────────────────────────────────────────────────────────────
pmouscFactors Points to the SCALEFACT structure that receives the scaling
factors.
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 MouGetScaleFact function
to retrieve the scaling factors for the row and column coordinates:
SCALEFACT mouscFactors;
HMOU hmou;
MouOpen(0L, &hmou);
MouGetScaleFact(&mouscFactors, hmou); /* retrieves scaling factors */
See Also
MouGetNumMickeys, MouOpen, MouSetScaleFact, SCALEFACT
♦