Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:ibm:prcp:mou:setptrshape [2016/02/04 07:31] – valerius | en:ibm:prcp:mou:setptrshape [2016/09/15 04:35] (current) – valerius | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== MouSetPtrShape ==== | ==== MouSetPtrShape ==== | ||
- | **Bindings**: | + | **Bindings**: |
This call allows a process to set the pointer shape and size to be used as the mouse device driver pointer image for all applications in a session. | This call allows a process to set the pointer shape and size to be used as the mouse device driver pointer image for all applications in a session. | ||
Line 31: | Line 31: | ||
For text mode height and width must be 1, so length is always 4. | For text mode height and width must be 1, so length is always 4. | ||
- | < | ||
// | // | ||
= 1 * 1 * 2 * 2 | = 1 * 1 * 2 * 2 | ||
= 4 | = 4 | ||
- | </ | + | |
**Graphics Mode** | **Graphics Mode** | ||
Line 92: | Line 91: | ||
The pointer shape is mapped by the Pointer Draw Device Driver and determined completely by the application. The height and width may vary from 1 through the pel size of the display screen. For restrictions concerning the Pointer Draw Device Driver, see IBM Operating System/2 Version 1.2 I/O Subsystems And Device Support Volume 1. | The pointer shape is mapped by the Pointer Draw Device Driver and determined completely by the application. The height and width may vary from 1 through the pel size of the display screen. For restrictions concerning the Pointer Draw Device Driver, see IBM Operating System/2 Version 1.2 I/O Subsystems And Device Support Volume 1. | ||
+ | |||
+ | === C bindings === | ||
+ | |||
+ | <code c> | ||
+ | typedef struct _PTRSHAPE { /* moups */ | ||
+ | USHORT cb; /* total length necessary to build | ||
+ | image */ | ||
+ | USHORT col; /* # of columns in mouse shape */ | ||
+ | USHORT row; /* number of rows in mouse shape */ | ||
+ | USHORT colHot; | ||
+ | hotspot */ | ||
+ | USHORT rowHot; | ||
+ | hotspot */ | ||
+ | } PTRSHAPE; | ||
+ | |||
+ | #define INCL_MOU | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | PBYTE PtrBuffer; | ||
+ | PPTRSHAPE | ||
+ | HMOU | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | === MASM bindings === | ||
+ | |||
+ | <code asm> | ||
+ | PTRSHAPE struc | ||
+ | moups_cb | ||
+ | moups_col | ||
+ | moups_row | ||
+ | moups_colHot | ||
+ | moups_rowHot | ||
+ | PTRSHAPE ends | ||
+ | |||
+ | EXTRN MouSetPtrShape: | ||
+ | INCL_MOU | ||
+ | |||
+ | PUSH@ OTHER | ||
+ | PUSH@ OTHER | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||