Differences
This shows you the differences between two versions of the page.
en:ibm:prcp:mou:getscalefact [2016/02/04 05:20] – created valerius | en:ibm:prcp:mou:getscalefact [2016/09/15 04:07] (current) – valerius | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== MouGetScaleFact ==== | ==== MouGetScaleFact ==== | ||
- | **Bindings**: | + | **Bindings**: |
This call returns a pair of 1-word scaling factors for the current mouse device. | This call returns a pair of 1-word scaling factors for the current mouse device. | ||
Line 35: | Line 35: | ||
The units of the scale factor depend on the mode of the display screen for the session. If the screen is operating in text mode, the scaling units are relative to characters. If the screen is | The units of the scale factor depend on the mode of the display screen for the session. If the screen is operating in text mode, the scaling units are relative to characters. If the screen is | ||
operating in graphics mode, the scaling units are relative to pels. | operating in graphics mode, the scaling units are relative to pels. | ||
+ | |||
+ | === C bindings === | ||
+ | |||
+ | <code c> | ||
+ | typedef struct _SCALEFACT { /* mousc */ | ||
+ | USHORT rowScale; | ||
+ | USHORT colScale; | ||
+ | } SCALEFACT; | ||
+ | |||
+ | #define INCL_MOU | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | PSCALEFACT | ||
+ | HMOU | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | === MASM bindings === | ||
+ | |||
+ | <code asm> | ||
+ | SCALEFACT struc | ||
+ | mousc_rowScale | ||
+ | mousc_colScale | ||
+ | SCALEFACT ends | ||
+ | |||
+ | EXTRN MouGetScaleFact: | ||
+ | INCL_MOU | ||
+ | |||
+ | PUSH@ OTHER | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||