en:ibm:prcp:mou:setptrshape

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:ibm:prcp:mou:setptrshape [2016/02/04 07:31] valeriusen:ibm:prcp:mou:setptrshape [2016/09/15 04:35] (current) valerius
Line 1: Line 1:
 ==== MouSetPtrShape ==== ==== MouSetPtrShape ====
  
-**Bindings**: C, MASM +**Bindings**: [[setptrshape#bindings|C]][[setptrshape#MASM bindings|MASM]]
  
 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 91: 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;             /* column coordinate of pointer image
 +                                  hotspot */
 +  USHORT rowHot;             /* row coordinate of pointer image
 +                                  hotspot */
 +} PTRSHAPE;
 +
 +#define INCL_MOU
 +
 +USHORT  rc = MouSetPtrShape(PtrBuffer, PtrDefRec, DeviceHandle);
 +
 +PBYTE            PtrBuffer;     /* Pointer shape buffer */
 +PPTRSHAPE        PtrDefRec;     /* Pointer definition record */
 +HMOU             DeviceHandle;  /* Mouse device handle */
 +
 +USHORT           rc;            /* return code */
 +</code>
 +
 +=== MASM bindings ===
 +
 +<code asm>
 +PTRSHAPE struc
 +  moups_cb      dw  ? ;total length necessary to build image
 +  moups_col     dw  ? ;# of columns in mouse shape
 +  moups_row     dw  ? ;number of rows in mouse shape
 +  moups_colHot  dw  ? ;column coordinate of pointer image hotspot
 +  moups_rowHot  dw  ? ;row coordinate of pointer image hotspot
 +PTRSHAPE ends
 +
 +EXTRN  MouSetPtrShape:FAR
 +INCL_MOU            EQU 1
 +
 +PUSH@  OTHER   PtrBuffer     ;Pointer shape buffer
 +PUSH@  OTHER   PtrDefRec     ;Pointer definition record
 +PUSH   WORD    DeviceHandle  ;Mouse device handle
 +CALL   MouSetPtrShape
 +
 +Returns WORD
 +</code>